@Operator public final class FakeQuantWithMinMaxVarsGradient extends PrimitiveOp
| Modifier and Type | Class and Description |
|---|---|
static class |
FakeQuantWithMinMaxVarsGradient.Options
Optional attributes for
FakeQuantWithMinMaxVarsGradient |
operation| Modifier and Type | Method and Description |
|---|---|
Output<Float> |
backpropsWrtInput()
Backpropagated gradients w.r.t.
|
Output<Float> |
backpropWrtMax()
Backpropagated gradients w.r.t.
|
Output<Float> |
backpropWrtMin()
Backpropagated gradients w.r.t.
|
static FakeQuantWithMinMaxVarsGradient |
create(Scope scope,
Operand<Float> gradients,
Operand<Float> inputs,
Operand<Float> min,
Operand<Float> max,
FakeQuantWithMinMaxVarsGradient.Options... options)
Factory method to create a class to wrap a new FakeQuantWithMinMaxVarsGradient operation to the graph.
|
static FakeQuantWithMinMaxVarsGradient.Options |
narrowRange(Boolean narrowRange) |
static FakeQuantWithMinMaxVarsGradient.Options |
numBits(Long numBits) |
equals, hashCode, toStringpublic static FakeQuantWithMinMaxVarsGradient create(Scope scope, Operand<Float> gradients, Operand<Float> inputs, Operand<Float> min, Operand<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(Long numBits)
numBits - The bitwidth of the quantization; between 2 and 8, inclusive.public static FakeQuantWithMinMaxVarsGradient.Options narrowRange(Boolean narrowRange)
narrowRange - Whether to quantize into 2^num_bits - 1 distinct values.public Output<Float> backpropsWrtInput()
public Output<Float> backpropWrtMin()
Copyright © 2015–2019. All rights reserved.