Modifier and Type | Field and Description |
---|---|
OnnxJavaType |
MapInfo.keyType
The Java type of the keys.
|
OnnxJavaType |
SequenceInfo.sequenceType
The type of the sequence if it does not contain a map,
UNKNOWN if it does. |
OnnxJavaType |
TensorInfo.type
The Java type of this tensor.
|
OnnxJavaType |
MapInfo.valueType
The Java type of the values.
|
Modifier and Type | Method and Description |
---|---|
static OnnxJavaType |
OnnxJavaType.mapFromClass(java.lang.Class<?> clazz)
Maps from a Java class object into the enum type, returning
UNKNOWN
for unsupported types. |
static OnnxJavaType |
OnnxJavaType.mapFromInt(int value)
Maps from an int in native land into an OnnxJavaType instance.
|
static OnnxJavaType |
OnnxJavaType.mapFromOnnxTensorType(TensorInfo.OnnxTensorType onnxValue)
Maps from the
TensorInfo.OnnxTensorType enum to the corresponding OnnxJavaType
enum, converting types as appropriate. |
static OnnxJavaType |
OnnxJavaType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OnnxJavaType[] |
OnnxJavaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static TensorInfo |
TensorInfo.constructFromBuffer(java.nio.Buffer buffer,
long[] shape,
OnnxJavaType type)
Constructs a TensorInfo from the supplied byte buffer.
|
static OnnxTensor |
OnnxTensor.createTensor(OrtEnvironment env,
java.nio.ByteBuffer data,
long[] shape,
OnnxJavaType type)
Create an OnnxTensor backed by a direct ByteBuffer.
|
static TensorInfo.OnnxTensorType |
TensorInfo.OnnxTensorType.mapFromJavaType(OnnxJavaType type)
Maps a OnnxJavaType into the appropriate native element type.
|
static OnnxMap.OnnxMapValueType |
OnnxMap.OnnxMapValueType.mapFromOnnxJavaType(OnnxJavaType type)
Maps a
OnnxJavaType into a map value type. |