@Namespace(value="tvm::runtime") @Properties(inherit=tvm_runtime.class) public class TVMRetValue extends TVMPODValue_
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
TVMRetValue()
\brief default constructor
|
TVMRetValue(long size)
Native array allocator.
|
TVMRetValue(Pointer p)
Pointer cast constructor.
|
TVMRetValue(TVMRetValue other)
\brief move constructor from anoter return value.
|
asBoolean, asDLContext, asDLTensor, asDouble, asInt, asLong, asModule, asNDArray, asPointer, type_codeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic TVMRetValue(Pointer p)
Pointer(Pointer).public TVMRetValue(long size)
Pointer.position(long).public TVMRetValue()
public TVMRetValue(@ByRef(value=true) TVMRetValue other)
other - The other return value.public TVMRetValue position(long position)
public TVMRetValue getPointer(long i)
getPointer in class Pointer@Name(value="operator std::string") @StdString public BytePointer asBytePointer()
@ByVal @Name(value="operator DLDataType") public DLDataType asDLDataType()
@ByVal @Name(value="operator tvm::runtime::PackedFunc") public PackedFunc asPackedFunc()
@ByRef @Name(value="operator =") public TVMRetValue put(@ByRef(value=true) TVMRetValue other)
@ByRef @Name(value="operator =") public TVMRetValue put(double value)
@ByRef @Name(value="operator =") public TVMRetValue put(Pointer value)
@ByRef @Name(value="operator =") public TVMRetValue put(int value)
@ByRef @Name(value="operator =") public TVMRetValue put(@ByVal @Cast(value="TVMContext*") DLContext value)
@ByRef @Name(value="operator =") public TVMRetValue put(@ByVal DLDataType t)
@ByRef @Name(value="operator =") public TVMRetValue put(@StdString BytePointer value)
@ByRef @Name(value="operator =") public TVMRetValue put(@StdString String value)
@ByRef @Name(value="operator =") public TVMRetValue put(@ByVal TVMByteArray value)
@ByRef @Name(value="operator =") public TVMRetValue put(@ByVal PackedFunc f)
@ByRef @Name(value="operator =") public TVMRetValue put(@Const @ByRef TVMArgValue other)
@ByRef @Name(value="operator =") public TVMRetValue put(@ByRef(value=true) TVMMovableArgValue_ other)
public void MoveToCHost(TVMValue ret_value, IntPointer ret_type_code)
ret_value - The return value.ret_type_code - The return type code.public void MoveToCHost(TVMValue ret_value, int[] ret_type_code)
@ByVal public static TVMRetValue MoveFromCHost(@ByVal TVMValue value, int type_code)
value - the value.type_code - The type code.Copyright © 2021. All rights reserved.