Enum Class OnnxType
- All Implemented Interfaces:
Serializable, Comparable<OnnxType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OnnxTypeof(int value) Returns the OnnxType corresponding to the given ORT integer code.intvalue()Returns the ORT integer code.static OnnxTypeReturns the enum constant of this class with the specified name.static OnnxType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown type. -
TENSOR
Dense tensor. -
SEQUENCE
Sequence of values. -
MAP
Map (key-value pairs). -
OPAQUE
Opaque type. -
SPARSE_TENSOR
Sparse tensor. -
OPTIONAL
Optional value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()Returns the ORT integer code.- Returns:
- the ORT integer code.
-
of
Returns the OnnxType corresponding to the given ORT integer code.- Parameters:
value- the ORT integer code.- Returns:
- the OnnxType.
-