@Name(value="Ort::detail::ConstValueImpl<Ort::detail::Unowned<const OrtValue> >") @Properties(inherit=onnxruntime.class) public class ConstValue extends BaseConstValue
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ConstValue()
Default native constructor.
|
ConstValue(long size)
Native array allocator.
|
ConstValue(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
GetCount()
< Return true if OrtValue contains data and returns false if the OrtValue is a None
|
ConstValue |
getPointer(long i) |
int |
GetSparseFormat()
|
TensorTypeAndShapeInfo |
GetSparseTensorIndicesTypeShapeInfo(int format) |
TensorTypeAndShapeInfo |
GetSparseTensorIndicesTypeShapeInfo(onnxruntime.OrtSparseIndicesFormat format)
|
TensorTypeAndShapeInfo |
GetSparseTensorValuesTypeAndShapeInfo()
|
void |
GetStringTensorContent(Pointer buffer,
long buffer_length,
SizeTPointer offsets,
long offsets_count)
|
long |
GetStringTensorDataLength()
|
BytePointer |
GetStringTensorElement(long element_index)
|
void |
GetStringTensorElement(long buffer_length,
long element_index,
Pointer buffer)
|
long |
GetStringTensorElementLength(long element_index)
|
MemoryInfoImpl |
GetTensorMemoryInfo()
|
Pointer |
GetTensorRawData()
|
TensorTypeAndShapeInfo |
GetTensorTypeAndShapeInfo()
|
TypeInfo |
GetTypeInfo()
|
Value |
GetValue(int index,
OrtAllocator allocator) |
boolean |
HasValue() |
boolean |
IsSparseTensor()
|
boolean |
IsTensor()
Returns true if Value is a tensor, false for other types like map/sequence/etc
|
ConstValue |
position(long position) |
asUnownedAllocator, putaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ConstValue()
public ConstValue(long size)
Pointer.position(long).public ConstValue(Pointer p)
Pointer(Pointer).public ConstValue position(long position)
position in class BaseConstValuepublic ConstValue getPointer(long i)
getPointer in class BaseConstValue@Cast(value="bool") public boolean IsTensor()
@Cast(value="size_t") public long GetCount()
@StdMove public Value GetValue(int index, OrtAllocator allocator)
@Cast(value="size_t") public long GetStringTensorDataLength()
public void GetStringTensorContent(Pointer buffer, @Cast(value="size_t") long buffer_length, @Cast(value="size_t*") SizeTPointer offsets, @Cast(value="size_t") long offsets_count)
@Const public Pointer GetTensorRawData()
@ByVal public TypeInfo GetTypeInfo()
@ByVal public TensorTypeAndShapeInfo GetTensorTypeAndShapeInfo()
@ByVal @Cast(value="Ort::ConstMemoryInfo*") public MemoryInfoImpl GetTensorMemoryInfo()
public void GetStringTensorElement(@Cast(value="size_t") long buffer_length, @Cast(value="size_t") long element_index, Pointer buffer)
@StdString public BytePointer GetStringTensorElement(@Cast(value="size_t") long element_index)
@Cast(value="size_t") public long GetStringTensorElementLength(@Cast(value="size_t") long element_index)
@Cast(value="OrtSparseFormat") public int GetSparseFormat()
@ByVal public TensorTypeAndShapeInfo GetSparseTensorValuesTypeAndShapeInfo()
@ByVal public TensorTypeAndShapeInfo GetSparseTensorIndicesTypeShapeInfo(onnxruntime.OrtSparseIndicesFormat format)
@ByVal public TensorTypeAndShapeInfo GetSparseTensorIndicesTypeShapeInfo(@Cast(value="OrtSparseIndicesFormat") int format)
Copyright © 2025. All rights reserved.