Class QuantizeAndDequantize<T extends TNumber>
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.quantization.QuantizeAndDequantize<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuantizeAndDequantize.Inputs<T extends TNumber>static classOptional attributes forQuantizeAndDequantize -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasOutput()Returns the symbolic handle of the tensor.Sets the axis option.static <T extends TNumber>
QuantizeAndDequantize<T> create(Scope scope, Operand<T> input, Operand<T> inputMin, Operand<T> inputMax, Operand<TInt32> numBits, QuantizeAndDequantize.Options... options) Factory method to create a class wrapping a new QuantizeAndDequantizeV3 operation.narrowRange(Boolean narrowRange) Sets the narrowRange option.output()Gets output.rangeGiven(Boolean rangeGiven) Sets the rangeGiven option.signedInput(Boolean signedInput) Sets the signedInput option.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
QuantizeAndDequantize
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static <T extends TNumber> QuantizeAndDequantize<T> create(Scope scope, Operand<T> input, Operand<T> inputMin, Operand<T> inputMax, Operand<TInt32> numBits, QuantizeAndDequantize.Options... options) Factory method to create a class wrapping a new QuantizeAndDequantizeV3 operation.- Type Parameters:
T- data type forQuantizeAndDequantizeV3output and operands- Parameters:
scope- current scopeinput- The input valueinputMin- The inputMin valueinputMax- The inputMax valuenumBits- The numBits valueoptions- carries optional attribute values- Returns:
- a new instance of QuantizeAndDequantize
-
signedInput
Sets the signedInput option.- Parameters:
signedInput- the signedInput option- Returns:
- this Options instance.
-
rangeGiven
Sets the rangeGiven option.- Parameters:
rangeGiven- the rangeGiven option- Returns:
- this Options instance.
-
narrowRange
Sets the narrowRange option.- Parameters:
narrowRange- the narrowRange option- Returns:
- this Options instance.
-
axis
Sets the axis option.- Parameters:
axis- the axis option- Returns:
- this Options instance.
-
output
-
asOutput
Description copied from interface:OperandReturns the symbolic handle of the tensor.Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
-