@Properties(inherit=tensorflowlite.class) public class TfLiteQuantizationParams extends Pointer
TfLiteAffineQuantization.
If per-layer quantization is specified this field will still be populated in
addition to TfLiteAffineQuantization.
Parameters for asymmetric quantization. Quantized values can be converted
back to float using: real_value = scale * (quantized_value - zero_point)Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
TfLiteQuantizationParams()
Default native constructor.
|
TfLiteQuantizationParams(long size)
Native array allocator.
|
TfLiteQuantizationParams(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TfLiteQuantizationParams |
getPointer(long i) |
TfLiteQuantizationParams |
position(long position) |
float |
scale() |
TfLiteQuantizationParams |
scale(float setter) |
int |
zero_point() |
TfLiteQuantizationParams |
zero_point(int 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, trimMemory, withDeallocator, zeropublic TfLiteQuantizationParams()
public TfLiteQuantizationParams(long size)
Pointer.position(long).public TfLiteQuantizationParams(Pointer p)
Pointer(Pointer).public TfLiteQuantizationParams position(long position)
public TfLiteQuantizationParams getPointer(long i)
getPointer in class Pointerpublic float scale()
public TfLiteQuantizationParams scale(float setter)
public int zero_point()
public TfLiteQuantizationParams zero_point(int setter)
Copyright © 2026. All rights reserved.