public final class QuantizationOps
extends java.lang.Object
quantization operations to a Graph| Modifier and Type | Method | Description |
|---|---|---|
<T> Dequantize |
dequantize(Operand<T> input,
Operand<java.lang.Float> minRange,
Operand<java.lang.Float> maxRange,
Dequantize.Options... options) |
Adds an
Dequantize operation to the graph |
FakeQuantWithMinMaxArgs |
fakeQuantWithMinMaxArgs(Operand<java.lang.Float> inputs,
FakeQuantWithMinMaxArgs.Options... options) |
Adds an
FakeQuantWithMinMaxArgs operation to the graph |
FakeQuantWithMinMaxArgsGradient |
fakeQuantWithMinMaxArgsGradient(Operand<java.lang.Float> gradients,
Operand<java.lang.Float> inputs,
FakeQuantWithMinMaxArgsGradient.Options... options) |
Adds an
FakeQuantWithMinMaxArgsGradient operation to the graph |
FakeQuantWithMinMaxVars |
fakeQuantWithMinMaxVars(Operand<java.lang.Float> inputs,
Operand<java.lang.Float> min,
Operand<java.lang.Float> max,
FakeQuantWithMinMaxVars.Options... options) |
Adds an
FakeQuantWithMinMaxVars operation to the graph |
FakeQuantWithMinMaxVarsGradient |
fakeQuantWithMinMaxVarsGradient(Operand<java.lang.Float> gradients,
Operand<java.lang.Float> inputs,
Operand<java.lang.Float> min,
Operand<java.lang.Float> max,
FakeQuantWithMinMaxVarsGradient.Options... options) |
Adds an
FakeQuantWithMinMaxVarsGradient operation to the graph |
FakeQuantWithMinMaxVarsPerChannel |
fakeQuantWithMinMaxVarsPerChannel(Operand<java.lang.Float> inputs,
Operand<java.lang.Float> min,
Operand<java.lang.Float> max,
FakeQuantWithMinMaxVarsPerChannel.Options... options) |
Adds an
FakeQuantWithMinMaxVarsPerChannel operation to the graph |
FakeQuantWithMinMaxVarsPerChannelGradient |
fakeQuantWithMinMaxVarsPerChannelGradient(Operand<java.lang.Float> gradients,
Operand<java.lang.Float> inputs,
Operand<java.lang.Float> min,
Operand<java.lang.Float> max,
FakeQuantWithMinMaxVarsPerChannelGradient.Options... options) |
Adds an
FakeQuantWithMinMaxVarsPerChannelGradient operation to the graph |
<T> Quantize<T> |
quantize(Operand<java.lang.Float> input,
Operand<java.lang.Float> minRange,
Operand<java.lang.Float> maxRange,
java.lang.Class<T> T,
Quantize.Options... options) |
Adds an
Quantize operation to the graph |
<T extends java.lang.Number> |
quantizeAndDequantize(Operand<T> input,
Operand<T> inputMin,
Operand<T> inputMax,
Operand<java.lang.Integer> numBits,
QuantizeAndDequantize.Options... options) |
Adds an
QuantizeAndDequantize operation to the graph |
<U,T> QuantizeDownAndShrinkRange<U> |
quantizeDownAndShrinkRange(Operand<T> input,
Operand<java.lang.Float> inputMin,
Operand<java.lang.Float> inputMax,
java.lang.Class<U> outType) |
Adds an
QuantizeDownAndShrinkRange operation to the graph |
<T> RequantizationRange |
requantizationRange(Operand<T> input,
Operand<java.lang.Float> inputMin,
Operand<java.lang.Float> inputMax) |
Adds an
RequantizationRange operation to the graph |
<U,T> Requantize<U> |
requantize(Operand<T> input,
Operand<java.lang.Float> inputMin,
Operand<java.lang.Float> inputMax,
Operand<java.lang.Float> requestedOutputMin,
Operand<java.lang.Float> requestedOutputMax,
java.lang.Class<U> outType) |
Adds an
Requantize operation to the graph |
public FakeQuantWithMinMaxVarsGradient fakeQuantWithMinMaxVarsGradient(Operand<java.lang.Float> gradients, Operand<java.lang.Float> inputs, Operand<java.lang.Float> min, Operand<java.lang.Float> max, FakeQuantWithMinMaxVarsGradient.Options... options)
FakeQuantWithMinMaxVarsGradient operation to the graphgradients - Backpropagated gradients above the FakeQuantWithMinMaxVars operation.inputs - Values passed as inputs to the FakeQuantWithMinMaxVars operation.min - max - options - carries optional attributes valuesFakeQuantWithMinMaxVarsGradientpublic <U,T> Requantize<U> requantize(Operand<T> input, Operand<java.lang.Float> inputMin, Operand<java.lang.Float> inputMax, Operand<java.lang.Float> requestedOutputMin, Operand<java.lang.Float> requestedOutputMax, java.lang.Class<U> outType)
Requantize operation to the graphinput - inputMin - The float value that the minimum quantized input value represents.inputMax - The float value that the maximum quantized input value represents.requestedOutputMin - The float value that the minimum quantized output value represents.requestedOutputMax - The float value that the maximum quantized output value represents.outType - The type of the output. Should be a lower bit depth than Tinput.Requantizepublic <T> Quantize<T> quantize(Operand<java.lang.Float> input, Operand<java.lang.Float> minRange, Operand<java.lang.Float> maxRange, java.lang.Class<T> T, Quantize.Options... options)
Quantize operation to the graphinput - minRange - The minimum scalar value possibly produced for the input.maxRange - The maximum scalar value possibly produced for the input.T - options - carries optional attributes valuesQuantizepublic FakeQuantWithMinMaxVarsPerChannel fakeQuantWithMinMaxVarsPerChannel(Operand<java.lang.Float> inputs, Operand<java.lang.Float> min, Operand<java.lang.Float> max, FakeQuantWithMinMaxVarsPerChannel.Options... options)
FakeQuantWithMinMaxVarsPerChannel operation to the graphinputs - min - max - options - carries optional attributes valuesFakeQuantWithMinMaxVarsPerChannelpublic <T extends java.lang.Number> QuantizeAndDequantize<T> quantizeAndDequantize(Operand<T> input, Operand<T> inputMin, Operand<T> inputMax, Operand<java.lang.Integer> numBits, QuantizeAndDequantize.Options... options)
QuantizeAndDequantize operation to the graphinput - inputMin - inputMax - numBits - options - carries optional attributes valuesQuantizeAndDequantizepublic FakeQuantWithMinMaxArgsGradient fakeQuantWithMinMaxArgsGradient(Operand<java.lang.Float> gradients, Operand<java.lang.Float> inputs, FakeQuantWithMinMaxArgsGradient.Options... options)
FakeQuantWithMinMaxArgsGradient operation to the graphgradients - Backpropagated gradients above the FakeQuantWithMinMaxArgs operation.inputs - Values passed as inputs to the FakeQuantWithMinMaxArgs operation.options - carries optional attributes valuesFakeQuantWithMinMaxArgsGradientpublic FakeQuantWithMinMaxVarsPerChannelGradient fakeQuantWithMinMaxVarsPerChannelGradient(Operand<java.lang.Float> gradients, Operand<java.lang.Float> inputs, Operand<java.lang.Float> min, Operand<java.lang.Float> max, FakeQuantWithMinMaxVarsPerChannelGradient.Options... options)
FakeQuantWithMinMaxVarsPerChannelGradient operation to the graphgradients - Backpropagated gradients above the FakeQuantWithMinMaxVars operation,inputs - Values passed as inputs to the FakeQuantWithMinMaxVars operation, shapemin - max - options - carries optional attributes valuesFakeQuantWithMinMaxVarsPerChannelGradientpublic <U,T> QuantizeDownAndShrinkRange<U> quantizeDownAndShrinkRange(Operand<T> input, Operand<java.lang.Float> inputMin, Operand<java.lang.Float> inputMax, java.lang.Class<U> outType)
QuantizeDownAndShrinkRange operation to the graphinput - inputMin - The float value that the minimum quantized input value represents.inputMax - The float value that the maximum quantized input value represents.outType - The type of the output. Should be a lower bit depth than Tinput.QuantizeDownAndShrinkRangepublic FakeQuantWithMinMaxArgs fakeQuantWithMinMaxArgs(Operand<java.lang.Float> inputs, FakeQuantWithMinMaxArgs.Options... options)
FakeQuantWithMinMaxArgs operation to the graphinputs - options - carries optional attributes valuesFakeQuantWithMinMaxArgspublic FakeQuantWithMinMaxVars fakeQuantWithMinMaxVars(Operand<java.lang.Float> inputs, Operand<java.lang.Float> min, Operand<java.lang.Float> max, FakeQuantWithMinMaxVars.Options... options)
FakeQuantWithMinMaxVars operation to the graphinputs - min - max - options - carries optional attributes valuesFakeQuantWithMinMaxVarspublic <T> Dequantize dequantize(Operand<T> input, Operand<java.lang.Float> minRange, Operand<java.lang.Float> maxRange, Dequantize.Options... options)
Dequantize operation to the graphinput - minRange - The minimum scalar value possibly produced for the input.maxRange - The maximum scalar value possibly produced for the input.options - carries optional attributes valuesDequantizepublic <T> RequantizationRange requantizationRange(Operand<T> input, Operand<java.lang.Float> inputMin, Operand<java.lang.Float> inputMax)
RequantizationRange operation to the graphinput - inputMin - The float value that the minimum quantized input value represents.inputMax - The float value that the maximum quantized input value represents.RequantizationRange