tensorflow::ops::FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>
Вычислять градиенты для операции FakeQuantWithMinMaxVars.
Summary
Аргументы:
- scope: Объект Scope
- gradients: Градиенты обратного распространения выше операции FakeQuantWithMinMaxVars.
- inputs: Значения, переданные в качестве входных данных для операции FakeQuantWithMinMaxVars. min, max: Интервал квантования, скалярные числа с плавающей точкой.
Необязательные атрибуты (см. Attrs):
- num_bits: Разрядность квантования; от 2 до 8 включительно.
- narrow_range: Флаг, указывающий на квантование в 2^num_bits - 1 различных значения.
Возвращает:
-
Outputbackprops_wrt_input: Градиенты обратного распространения по отношению к входным данным:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Градиенты обратного распространения по отношению к параметру min:sum(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Градиенты обратного распространения по отношению к параметру max:sum(gradients * (inputs > max)).
| Конструкторы и деструкторы | |
|---|---|
FakeQuantWithMinMaxVarsGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max) | |
FakeQuantWithMinMaxVarsGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
| Общедоступные статические функции | |
|---|---|
NarrowRange(bool x) | |
NumBits(int64 x) | |
| Структуры | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsGradient::Attrs | Необязательные атрибуты установки для FakeQuantWithMinMaxVarsGradient. |
Общедоступные атрибуты
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
Общедоступные функции
FakeQuantWithMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantWithMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs )
Общедоступные статические функции
NarrowRange
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )
© 2020 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/versions/r2.3/api_docs/cc/class/tensorflow/ops/fake-quant-with-min-max-vars-gradient