@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Requantize extends Pointer
input
tensor into a lower-precision output
.
Converts the quantized input
tensor into a lower-precision output
, using the
output range specified with requested_output_min
and requested_output_max
.
[input_min, input_max]
are scalar floats that specify the range for the float
interpretation of the input
data. For example, if input_min
is -1.0f and
input_max
is 1.0f, and we are dealing with quint16
quantized data, then a 0
value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f.
Arguments:
* scope: A Scope object
* input_min: The float value that the minimum quantized input value represents.
* input_max: The float value that the maximum quantized input value represents.
* requested_output_min: The float value that the minimum quantized output value represents.
* requested_output_max: The float value that the maximum quantized output value represents.
* out_type: The type of the output. Should be a lower bit depth than Tinput.
Returns:
* Output
output
* Output
output_min: The requested_output_min value is copied into this output.
* Output
output_max: The requested_output_max value is copied into this output.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Requantize(Pointer p)
Pointer cast constructor.
|
Requantize(Scope scope,
Input input,
Input input_min,
Input input_max,
Input requested_output_min,
Input requested_output_max,
int out_type) |
Modifier and Type | Method and Description |
---|---|
Operation |
operation() |
Requantize |
operation(Operation setter) |
Output |
output_max() |
Requantize |
output_max(Output setter) |
Output |
output_min() |
Requantize |
output_min(Output setter) |
Output |
output() |
Requantize |
output(Output setter) |
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 Requantize(Pointer p)
Pointer(Pointer)
.public Requantize operation(Operation setter)
public Requantize output(Output setter)
public Requantize output_min(Output setter)
public Requantize output_max(Output setter)
Copyright © 2022. All rights reserved.