Class FakeQuantWithMinMaxVarsGradient
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.quantization.FakeQuantWithMinMaxVarsGradient
- All Implemented Interfaces:
Op
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classOptional attributes forFakeQuantWithMinMaxVarsGradient -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets backpropsWrtInput.Gets backpropWrtMax.Gets backpropWrtMin.create(Scope scope, Operand<TFloat32> gradients, Operand<TFloat32> inputs, Operand<TFloat32> min, Operand<TFloat32> max, FakeQuantWithMinMaxVarsGradient.Options... options) Factory method to create a class wrapping a new FakeQuantWithMinMaxVarsGradient operation.narrowRange(Boolean narrowRange) Sets the narrowRange option.Sets the numBits option.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
FakeQuantWithMinMaxVarsGradient
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static FakeQuantWithMinMaxVarsGradient create(Scope scope, Operand<TFloat32> gradients, Operand<TFloat32> inputs, Operand<TFloat32> min, Operand<TFloat32> max, FakeQuantWithMinMaxVarsGradient.Options... options) Factory method to create a class wrapping a new FakeQuantWithMinMaxVarsGradient operation.- Parameters:
scope- current scopegradients- Backpropagated gradients above the FakeQuantWithMinMaxVars operation.inputs- Values passed as inputs to the FakeQuantWithMinMaxVars operation. min, max: Quantization interval, scalar floats.min- The min valuemax- The max valueoptions- carries optional attribute values- Returns:
- a new instance of FakeQuantWithMinMaxVarsGradient
-
numBits
Sets the numBits option.- Parameters:
numBits- The bitwidth of the quantization; between 2 and 8, inclusive.- Returns:
- this Options instance.
-
narrowRange
Sets the narrowRange option.- Parameters:
narrowRange- Whether to quantize into 2^num_bits - 1 distinct values.- Returns:
- this Options instance.
-
backpropsWrtInput
-
backpropWrtMin
-
backpropWrtMax
-