public static class QuantizeAndDequantizeV2.Attrs extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Attrs()
Default native constructor.
|
Attrs(long size)
Native array allocator.
|
Attrs(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
QuantizeAndDequantizeV2.Attrs |
getPointer(long i) |
boolean |
narrow_range_() |
QuantizeAndDequantizeV2.Attrs |
narrow_range_(boolean setter) |
QuantizeAndDequantizeV2.Attrs |
NarrowRange(boolean x)
If True, then the absolute value of the quantized minimum value is the same as
the quantized maximum value, instead of 1 greater.
|
long |
num_bits_() |
QuantizeAndDequantizeV2.Attrs |
num_bits_(long setter) |
QuantizeAndDequantizeV2.Attrs |
NumBits(long x)
The bitwidth of the quantization.
|
QuantizeAndDequantizeV2.Attrs |
position(long position) |
boolean |
range_given_() |
QuantizeAndDequantizeV2.Attrs |
range_given_(boolean setter) |
QuantizeAndDequantizeV2.Attrs |
RangeGiven(boolean x)
Whether the range is given or should be determined from the
input tensor. |
BytePointer |
round_mode_() |
QuantizeAndDequantizeV2.Attrs |
round_mode_(BytePointer setter) |
QuantizeAndDequantizeV2.Attrs |
RoundMode(BytePointer x)
The 'round_mode' attribute controls which rounding tie-breaking algorithm is
used when rounding float values to their quantized equivalents.
|
QuantizeAndDequantizeV2.Attrs |
RoundMode(String x) |
boolean |
signed_input_() |
QuantizeAndDequantizeV2.Attrs |
signed_input_(boolean setter) |
QuantizeAndDequantizeV2.Attrs |
SignedInput(boolean x)
Whether the quantization is signed or unsigned.
|
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 Attrs()
public Attrs(long size)
Pointer.position(long)
.public Attrs(Pointer p)
Pointer(Pointer)
.public QuantizeAndDequantizeV2.Attrs position(long position)
public QuantizeAndDequantizeV2.Attrs getPointer(long i)
getPointer
in class Pointer
@ByVal public QuantizeAndDequantizeV2.Attrs SignedInput(@Cast(value="bool") boolean x)
signed_output
)
Defaults to true@ByVal public QuantizeAndDequantizeV2.Attrs NumBits(@Cast(value="tensorflow::int64") long x)
@ByVal public QuantizeAndDequantizeV2.Attrs RangeGiven(@Cast(value="bool") boolean x)
input
tensor.
Defaults to false@ByVal public QuantizeAndDequantizeV2.Attrs RoundMode(@tensorflow.StringPiece BytePointer x)
@ByVal public QuantizeAndDequantizeV2.Attrs RoundMode(@tensorflow.StringPiece String x)
@ByVal public QuantizeAndDequantizeV2.Attrs NarrowRange(@Cast(value="bool") boolean x)
public QuantizeAndDequantizeV2.Attrs signed_input_(boolean setter)
public QuantizeAndDequantizeV2.Attrs num_bits_(long setter)
public QuantizeAndDequantizeV2.Attrs range_given_(boolean setter)
@tensorflow.StringPiece public BytePointer round_mode_()
public QuantizeAndDequantizeV2.Attrs round_mode_(BytePointer setter)
public QuantizeAndDequantizeV2.Attrs narrow_range_(boolean setter)
Copyright © 2022. All rights reserved.