@Namespace(value="tensorflow") public static class tensorflow.Allocator extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
static long |
kAllocatorAlignment |
| Constructor and Description |
|---|
Allocator(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
AllocatedSize(Pointer ptr) |
long |
AllocatedSizeSlow(Pointer ptr) |
Pointer |
AllocateRaw(long alignment,
long num_bytes) |
Pointer |
AllocateRaw(long alignment,
long num_bytes,
tensorflow.AllocationAttributes allocation_attr) |
long |
AllocationId(Pointer ptr) |
void |
ClearStats() |
void |
DeallocateRaw(Pointer ptr) |
void |
GetStats(tensorflow.AllocatorStats stats) |
static long |
kAllocatorAlignment() |
BytePointer |
Name() |
long |
RequestedSize(Pointer ptr) |
boolean |
ShouldAllocateEmptyTensors() |
boolean |
TracksAllocationSizes() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Allocator(Pointer p)
Pointer.Pointer(Pointer).@MemberGetter @Cast(value="const size_t") public static long kAllocatorAlignment()
@StdString public BytePointer Name()
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes)
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes, @Const @ByRef tensorflow.AllocationAttributes allocation_attr)
public void DeallocateRaw(Pointer ptr)
public void GetStats(tensorflow.AllocatorStats stats)
public void ClearStats()
Copyright © 2019. All rights reserved.