@Properties(inherit=tvm_runtime.class) public class DLDevice extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DLDevice()
Default native constructor.
|
DLDevice(long size)
Native array allocator.
|
DLDevice(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
device_id()
\brief The device index.
|
DLDevice |
device_id(int setter) |
int |
device_type()
\brief The device type used in the device.
|
DLDevice |
device_type(int setter) |
DLDevice |
getPointer(long i) |
DLDevice |
position(long position) |
address, 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, zero
public DLDevice()
public DLDevice(long size)
Pointer.position(long)
.public DLDevice(Pointer p)
Pointer(Pointer)
.public DLDevice getPointer(long i)
getPointer
in class Pointer
@Cast(value="DLDeviceType") public int device_type()
public DLDevice device_type(int setter)
@Cast(value="int32_t") public int device_id()
public DLDevice device_id(int setter)
Copyright © 2024. All rights reserved.