public class OnnxSequence extends java.lang.Object implements OnnxValue
OnnxValues 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()
OnnxValuepublic java.util.List<java.lang.Object> getValue()
throws OrtException
List of boxed primitives, Strings, or Maps.getValue in interface OnnxValueOrtException - If the runtime failed to read an element.public SequenceInfo getInfo()
OnnxValuepublic java.lang.String toString()
toString in class java.lang.Object