Package ai.onnxruntime
Class OnnxTensorLike
- java.lang.Object
-
- ai.onnxruntime.OnnxTensorLike
-
- All Implemented Interfaces:
OnnxValue,java.lang.AutoCloseable
- Direct Known Subclasses:
OnnxSparseTensor,OnnxTensor
public abstract class OnnxTensorLike extends java.lang.Object implements OnnxValue
Currently implemented byOnnxTensor,OnnxSparseTensor. Will be sealed to these types one day.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ai.onnxruntime.OnnxValue
OnnxValue.OnnxValueType
-
-
Field Summary
Fields Modifier and Type Field Description protected longallocatorHandleprotected TensorInfoinfoprotected longnativeHandle
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorInfogetInfo()Returns aTensorInfofor this tensor.
-
-
-
Field Detail
-
nativeHandle
protected final long nativeHandle
-
allocatorHandle
protected final long allocatorHandle
-
info
protected final TensorInfo info
-
-
Method Detail
-
getInfo
public TensorInfo getInfo()
Returns aTensorInfofor this tensor.
-
-