@Properties(inherit=tvm_runtime.class) public class DLContext extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DLContext()
Default native constructor.
|
DLContext(long size)
Native array allocator.
|
DLContext(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
device_id()
\brief The device index
|
DLContext |
device_id(int setter) |
int |
device_type()
\brief The device type used in the device.
|
DLContext |
device_type(int setter) |
DLContext |
getPointer(long i) |
DLContext |
position(long position) |
address, 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, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic DLContext()
public DLContext(long size)
Pointer.position(long).public DLContext(Pointer p)
Pointer(Pointer).public DLContext getPointer(long i)
getPointer in class Pointer@Cast(value="DLDeviceType") public int device_type()
public DLContext device_type(int setter)
public int device_id()
public DLContext device_id(int setter)
Copyright © 2021. All rights reserved.