Package ai.onnxruntime
Enum Class OnnxValue.OnnxValueType
- All Implemented Interfaces:
Serializable,Comparable<OnnxValue.OnnxValueType>,Constable
- Enclosing interface:
- OnnxValue
The type of the
OnnxValue, mirroring the id in the C API.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA map.An opaque type not accessible from Java.An optional input value.A sequence of tensors or maps.A sparse tensor.A tensor.An unknown OrtValue type. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OnnxValue.OnnxValueTypeReturns the enum constant of this class with the specified name.static OnnxValue.OnnxValueType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONNX_TYPE_UNKNOWN
An unknown OrtValue type. -
ONNX_TYPE_TENSOR
A tensor. -
ONNX_TYPE_SEQUENCE
A sequence of tensors or maps. -
ONNX_TYPE_MAP
A map. -
ONNX_TYPE_OPAQUE
An opaque type not accessible from Java. -
ONNX_TYPE_SPARSETENSOR
A sparse tensor. -
ONNX_TYPE_OPTIONAL
An optional input value.
-
-
Field Details
-
value
public final int valueThe id number of this type in the C API.
-
-
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
-