tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>
Вычисление градиентов для операции FakeQuantWithMinMaxVarsPerChannel.
Резюме
Аргументы:
- scope: Объект Scope
- gradients: Градиенты обратного распространения выше операции FakeQuantWithMinMaxVars, форма одного из:
[d],[b, d],[b, h, w, d]. - inputs: Значения, переданные в качестве входных данных для операции FakeQuantWithMinMaxVars, форма такая же, как у
gradients. min, max: Интервал квантования, числа с плавающей точкой формы[d].
Необязательные атрибуты (см. Attrs):
- num_bits: Разрядность квантования; от 2 до 16 включительно.
- narrow_range: Признак квантования в 2^num_bits - 1 различных значениях.
Возвращаемое значение:
-
Outputbackprops_wrt_input: Градиенты обратного распространения относительно входных данных, форма такая же, как уinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Градиенты обратного распространения относительно параметра min, форма[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Градиенты обратного распространения относительно параметра max, форма[d]:sum_per_d(gradients * (inputs > max)).
| Конструкторы и деструкторы | |
|---|---|
FakeQuantWithMinMaxVarsPerChannelGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max) | |
FakeQuantWithMinMaxVarsPerChannelGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannelGradient::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
| Общедоступные статические функции | |
|---|---|
NarrowRange(bool x) | |
NumBits(int64 x) | |
| Структуры | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient::Attrs | Необязательные установщики атрибутов для FakeQuantWithMinMaxVarsPerChannelGradient. |
Общедоступные атрибуты
backprop_wrt_max
::tensorflow::Output backprop_wrt_max
backprop_wrt_min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
operation
Operation operation
Общедоступные функции
FakeQuantWithMinMaxVarsPerChannelGradient
FakeQuantWithMinMaxVarsPerChannelGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantWithMinMaxVarsPerChannelGradient
FakeQuantWithMinMaxVarsPerChannelGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannelGradient::Attrs & attrs )
Общедоступные статические функции
NarrowRange
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.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