#include <array_ops.h>
Compute gradients for a FakeQuantWithMinMaxVarsPerChannel operation.
Arguments:
[d]
, [b, d]
, [b, h, w, d]
.gradients
. min, max: Quantization interval, floats of shape [d]
.Returns:
Output
backprops_wrt_input: Backpropagated gradients w.r.t. inputs, shape same as inputs
: gradients * (inputs >= min && inputs <= max)
.Output
backprop_wrt_min: Backpropagated gradients w.r.t. min parameter, shape [d]
: sum_per_d(gradients * (inputs < min))
.Output
backprop_wrt_max: Backpropagated gradients w.r.t. max parameter, shape [d]
: sum_per_d(gradients * (inputs > max))
. Constructors and Destructors | |
---|---|
FakeQuantWithMinMaxVarsPerChannelGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max) |
Public attributes | |
---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input |
::tensorflow::Output backprop_wrt_max
::tensorflow::Output backprop_wrt_min
::tensorflow::Output backprops_wrt_input
FakeQuantWithMinMaxVarsPerChannelGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/fake-quant-with-min-max-vars-per-channel-gradient.html