@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class TrackingAllocator extends Allocator
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
kAllocatorAlignment
Constructor and Description |
---|
TrackingAllocator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
AllocatedSize(Pointer ptr) |
Pointer |
AllocateRaw(long alignment,
long num_bytes) |
Pointer |
AllocateRaw(long alignment,
long num_bytes,
AllocationAttributes allocation_attr) |
long |
AllocationId(Pointer ptr) |
void |
ClearStats() |
void |
DeallocateRaw(Pointer ptr) |
AllocRecordVector |
GetCurrentRecords() |
AllocRecordVector |
GetRecordsAndUnRef() |
SizeTPointer |
GetSizes() |
BytePointer |
Name() |
long |
RequestedSize(Pointer ptr) |
boolean |
TracksAllocationSizes() |
AllocatedSizeSlow, AllocatesOpaqueHandle, kAllocatorAlignment, SetSafeFrontier
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TrackingAllocator(Pointer p)
Pointer(Pointer)
.@StdString public BytePointer Name()
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes)
AllocateRaw
in class Allocator
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes, @Const @ByRef AllocationAttributes allocation_attr)
AllocateRaw
in class Allocator
public void DeallocateRaw(Pointer ptr)
DeallocateRaw
in class Allocator
@Cast(value="bool") public boolean TracksAllocationSizes()
TracksAllocationSizes
in class Allocator
@Cast(value="size_t") public long RequestedSize(@Const Pointer ptr)
RequestedSize
in class Allocator
@Cast(value="size_t") public long AllocatedSize(@Const Pointer ptr)
AllocatedSize
in class Allocator
@Cast(value="tensorflow::int64") public long AllocationId(@Const Pointer ptr)
AllocationId
in class Allocator
public void ClearStats()
ClearStats
in class Allocator
@ByVal @Cast(value="std::tuple<size_t,size_t,size_t>*") public SizeTPointer GetSizes()
@ByVal public AllocRecordVector GetRecordsAndUnRef()
@ByVal public AllocRecordVector GetCurrentRecords()
Copyright © 2022. All rights reserved.