public abstract class OnnxTensorLike extends Object implements OnnxValue
OnnxTensor
, OnnxSparseTensor
. Will be sealed to these
types one day.OnnxValue.OnnxValueType
Modifier and Type | Field and Description |
---|---|
protected long |
allocatorHandle
The pointer to the native memory allocator.
|
protected boolean |
closed
Is this value closed?
|
protected TensorInfo |
info
The size and shape information for this tensor.
|
protected long |
nativeHandle
The native pointer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkClosed()
Checks if the OnnxValue is closed, if so throws
IllegalStateException . |
TensorInfo |
getInfo()
Returns a
TensorInfo for this tensor. |
boolean |
isClosed()
Checks if this value is closed (i.e., the native object has been released).
|
protected final long nativeHandle
protected final long allocatorHandle
protected final TensorInfo info
protected boolean closed
public TensorInfo getInfo()
TensorInfo
for this tensor.public boolean isClosed()
OnnxValue
protected void checkClosed()
IllegalStateException
.Copyright © 2024. All rights reserved.