Op@Operator(group="quantization") public final class FakeQuantWithMinMaxVarsGradient extends PrimitiveOp
| Modifier and Type | Class | Description |
|---|---|---|
static class |
FakeQuantWithMinMaxVarsGradient.Options |
Optional attributes for
FakeQuantWithMinMaxVarsGradient |
operation| Modifier and Type | Method | Description |
|---|---|---|
Output<java.lang.Float> |
backpropsWrtInput() |
Backpropagated gradients w.r.t.
|
Output<java.lang.Float> |
backpropWrtMax() |
Backpropagated gradients w.r.t.
|
Output<java.lang.Float> |
backpropWrtMin() |
Backpropagated gradients w.r.t.
|
static FakeQuantWithMinMaxVarsGradient |
create(Scope scope,
Operand<java.lang.Float> gradients,
Operand<java.lang.Float> inputs,
Operand<java.lang.Float> min,
Operand<java.lang.Float> max,
FakeQuantWithMinMaxVarsGradient.Options... options) |
Factory method to create a class to wrap a new FakeQuantWithMinMaxVarsGradient operation to the graph.
|
static FakeQuantWithMinMaxVarsGradient.Options |
narrowRange(java.lang.Boolean narrowRange) |
|
static FakeQuantWithMinMaxVarsGradient.Options |
numBits(java.lang.Long numBits) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static FakeQuantWithMinMaxVarsGradient create(Scope scope, Operand<java.lang.Float> gradients, Operand<java.lang.Float> inputs, Operand<java.lang.Float> min, Operand<java.lang.Float> max, FakeQuantWithMinMaxVarsGradient.Options... options)
scope - current graph scopegradients - Backpropagated gradients above the FakeQuantWithMinMaxVars operation.inputs - Values passed as inputs to the FakeQuantWithMinMaxVars operation.
min, max: Quantization interval, scalar floats.min - max - options - carries optional attributes valuespublic static FakeQuantWithMinMaxVarsGradient.Options numBits(java.lang.Long numBits)
numBits - The bitwidth of the quantization; between 2 and 8, inclusive.public static FakeQuantWithMinMaxVarsGradient.Options narrowRange(java.lang.Boolean narrowRange)
narrowRange - Whether to quantize into 2^num_bits - 1 distinct values.public Output<java.lang.Float> backpropsWrtInput()
public Output<java.lang.Float> backpropWrtMin()
public Output<java.lang.Float> backpropWrtMax()