@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class DataPtr extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DataPtr() |
DataPtr(long size)
Native array allocator.
|
DataPtr(Pointer p)
Pointer cast constructor.
|
DataPtr(Pointer data,
Device device) |
DataPtr(Pointer data,
Pointer ctx,
PointerConsumer ctx_deleter,
Device device) |
Modifier and Type | Method and Description |
---|---|
Pointer |
access() |
boolean |
asBoolean() |
void |
clear() |
boolean |
compare_exchange_deleter(PointerConsumer expected_deleter,
PointerConsumer new_deleter)
Compare the deleter in a DataPtr to expected_deleter.
|
Device |
device() |
Pointer |
get_context() |
PointerConsumer |
get_deleter() |
Pointer |
get() |
DataPtr |
getPointer(long i) |
Pointer |
mutable_get() |
DataPtr |
position(long position) |
Pointer |
release_context() |
void |
unsafe_set_device(Device device) |
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 DataPtr(Pointer p)
Pointer(Pointer)
.public DataPtr(long size)
Pointer.position(long)
.public DataPtr()
public DataPtr(Pointer data, Pointer ctx, PointerConsumer ctx_deleter, @ByVal Device device)
public DataPtr getPointer(long i)
getPointer
in class Pointer
public void clear()
public Pointer get()
public Pointer mutable_get()
public Pointer get_context()
public Pointer release_context()
public PointerConsumer get_deleter()
@Cast(value="bool") public boolean compare_exchange_deleter(PointerConsumer expected_deleter, PointerConsumer new_deleter)
Copyright © 2024. All rights reserved.