@Properties(inherit=tensorflowlite.class) public class TfLiteCustomAllocation extends Pointer
data should be aligned to kDefaultTensorAlignment defined in
lite/util.h. (Currently 64 bytes)
NOTE: See Interpreter::SetCustomAllocationForTensor for details on usage.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
TfLiteCustomAllocation()
Default native constructor.
|
TfLiteCustomAllocation(long size)
Native array allocator.
|
TfLiteCustomAllocation(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytes() |
TfLiteCustomAllocation |
bytes(long setter) |
Pointer |
data() |
TfLiteCustomAllocation |
data(Pointer setter) |
TfLiteCustomAllocation |
getPointer(long i) |
TfLiteCustomAllocation |
position(long position) |
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, trimMemory, withDeallocator, zeropublic TfLiteCustomAllocation()
public TfLiteCustomAllocation(long size)
Pointer.position(long).public TfLiteCustomAllocation(Pointer p)
Pointer(Pointer).public TfLiteCustomAllocation position(long position)
public TfLiteCustomAllocation getPointer(long i)
getPointer in class Pointerpublic Pointer data()
public TfLiteCustomAllocation data(Pointer setter)
public TfLiteCustomAllocation bytes(long setter)
Copyright © 2026. All rights reserved.