@Namespace(value="at") @Properties(inherit=torch.class) public class XPUHooksInterface extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
XPUHooksInterface()
Default native constructor.
|
XPUHooksInterface(long size)
Native array allocator.
|
XPUHooksInterface(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Device |
getATenDeviceFromDLPackDevice(DLDevice_ dl_device,
Pointer data) |
DLDevice_ |
getDLPackDeviceFromATenDevice(DLDevice_ dl_device,
Device aten_device,
Pointer data) |
XPUHooksInterface |
getPointer(long i) |
boolean |
hasXPU() |
void |
initXPU() |
XPUHooksInterface |
position(long position) |
BytePointer |
showConfig() |
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 XPUHooksInterface()
public XPUHooksInterface(long size)
Pointer.position(long)
.public XPUHooksInterface(Pointer p)
Pointer(Pointer)
.public XPUHooksInterface position(long position)
public XPUHooksInterface getPointer(long i)
getPointer
in class Pointer
public void initXPU()
@StdString public BytePointer showConfig()
@ByVal public Device getATenDeviceFromDLPackDevice(@Const @ByRef DLDevice_ dl_device, Pointer data)
Copyright © 2024. All rights reserved.