@Name(value="tvm::runtime::TVMPODValue_CRTP_<tvm::runtime::TVMArgValue>") @Properties(inherit=tvm_runtime.class) public class TVMPODArgValue extends TVMPODValue_
TVMArgValue, the active variant is v_str, a const
char*. For TVMRetValue, the active variant is v_handle,
and should be cast from void* to std::string*.
kTVMBytes:
The active variant is v_handle, a void*. For
TVMArgValue, should be cast to TVMByteArray*. For
TVMRetValue, should be cast to std::string*.
When converting into an ObjectRef, a string may be used to build
a tvm::runtime::String. Because TVMArgValue and TVMRetValue use
different representations for strings, any utility funciton which
might attempt a conversion to an ObjectRef must be performed
within a context that is aware of the derived class.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
TVMPODArgValue()
Default native constructor.
|
TVMPODArgValue(long size)
Native array allocator.
|
TVMPODArgValue(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean() |
double |
asDouble() |
int |
asInt() |
long |
asLong() |
TVMPODArgValue |
getPointer(long i) |
TVMPODArgValue |
position(long position) |
asDLDevice, asDLTensor, asModule, asNDArray, asPackedFunc, asPointer, TryAsBool, TryAsFloat, TryAsInt, type_codeaddress, 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 TVMPODArgValue()
public TVMPODArgValue(long size)
Pointer.position(long).public TVMPODArgValue(Pointer p)
Pointer(Pointer).public TVMPODArgValue position(long position)
public TVMPODArgValue getPointer(long i)
getPointer in class PointerCopyright © 2024. All rights reserved.