@Namespace(value="c10::cuda::CUDACachingAllocator") @Properties(inherit=torch_cuda.class) public class BlockInfo extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BlockInfo()
Default native constructor.
|
BlockInfo(long size)
Native array allocator.
|
BlockInfo(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
active() |
BlockInfo |
active(boolean setter) |
boolean |
allocated() |
BlockInfo |
allocated(boolean setter) |
GatheredContext |
context_when_allocated() |
BlockInfo |
context_when_allocated(GatheredContext setter) |
int |
gc_counter() |
BlockInfo |
gc_counter(int setter) |
BlockInfo |
getPointer(long i) |
BlockInfo |
position(long position) |
long |
requested_size() |
BlockInfo |
requested_size(long setter) |
long |
size() |
BlockInfo |
size(long setter) |
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 BlockInfo()
public BlockInfo(long size)
Pointer.position(long)
.public BlockInfo(Pointer p)
Pointer(Pointer)
.public BlockInfo getPointer(long i)
getPointer
in class Pointer
public BlockInfo size(long setter)
public BlockInfo requested_size(long setter)
public int gc_counter()
public BlockInfo gc_counter(int setter)
public BlockInfo allocated(boolean setter)
public BlockInfo active(boolean setter)
@SharedPtr public GatheredContext context_when_allocated()
public BlockInfo context_when_allocated(GatheredContext setter)
Copyright © 2024. All rights reserved.