@Namespace(value="c10::cuda::CUDACachingAllocator") @Properties(inherit=torch_cuda.class) public class SegmentInfo extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SegmentInfo()
Default native constructor.
|
SegmentInfo(long size)
Native array allocator.
|
SegmentInfo(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
_address() |
SegmentInfo |
_address(long setter) |
long |
active_size() |
SegmentInfo |
active_size(long setter) |
long |
allocated_size() |
SegmentInfo |
allocated_size(long setter) |
BlockInfo |
blocks() |
SegmentInfo |
blocks(BlockInfo setter) |
GatheredContext |
context_when_allocated() |
SegmentInfo |
context_when_allocated(GatheredContext setter) |
long |
device() |
SegmentInfo |
device(long setter) |
SegmentInfo |
getPointer(long i) |
boolean |
is_expandable() |
SegmentInfo |
is_expandable(boolean setter) |
boolean |
is_large() |
SegmentInfo |
is_large(boolean setter) |
DeviceAssertionsDataVectorCUDAKernelLaunchInfoVectorPair |
owner_private_pool_id() |
SegmentInfo |
owner_private_pool_id(DeviceAssertionsDataVectorCUDAKernelLaunchInfoVectorPair setter) |
SegmentInfo |
position(long position) |
long |
requested_size() |
SegmentInfo |
requested_size(long setter) |
Pointer |
stream() |
SegmentInfo |
stream(Pointer setter) |
long |
total_size() |
SegmentInfo |
total_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 SegmentInfo()
public SegmentInfo(long size)
Pointer.position(long)
.public SegmentInfo(Pointer p)
Pointer(Pointer)
.public SegmentInfo position(long position)
public SegmentInfo getPointer(long i)
getPointer
in class Pointer
public SegmentInfo device(long setter)
public SegmentInfo _address(long setter)
public SegmentInfo total_size(long setter)
public SegmentInfo requested_size(long setter)
public SegmentInfo allocated_size(long setter)
public SegmentInfo active_size(long setter)
public SegmentInfo stream(Pointer setter)
public SegmentInfo is_large(boolean setter)
public SegmentInfo is_expandable(boolean setter)
@ByRef @Cast(value="c10::cuda::MempoolId_t*") public DeviceAssertionsDataVectorCUDAKernelLaunchInfoVectorPair owner_private_pool_id()
public SegmentInfo owner_private_pool_id(DeviceAssertionsDataVectorCUDAKernelLaunchInfoVectorPair setter)
@StdVector public BlockInfo blocks()
public SegmentInfo blocks(BlockInfo setter)
@SharedPtr public GatheredContext context_when_allocated()
public SegmentInfo context_when_allocated(GatheredContext setter)
Copyright © 2024. All rights reserved.