public class OnnxSequence extends java.lang.Object implements OnnxValue
OnnxValue
s all of the same type.
Supports the types mentioned in "onnxruntime_c_api.h", currently String, Long, Float, Double, Map>String,Float<, Map>Long,Float<.
OnnxValue.OnnxValueType
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this sequence, releasing the native memory backing it and it's elements.
|
SequenceInfo |
getInfo()
Gets the type info object associated with this OnnxValue.
|
OnnxValue.OnnxValueType |
getType()
Gets the type of this OnnxValue.
|
java.util.List<java.lang.Object> |
getValue()
Extracts a Java object from the native ONNX type.
|
java.lang.String |
toString() |
public OnnxValue.OnnxValueType getType()
OnnxValue
public java.util.List<java.lang.Object> getValue() throws OrtException
Returns either a List
of boxed primitives, String
s, or Map
s.
getValue
in interface OnnxValue
OrtException
- If the runtime failed to read an element.public SequenceInfo getInfo()
OnnxValue
public java.lang.String toString()
toString
in class java.lang.Object