tensorflow::ops::FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>Вычислите градиенты для операции FakeQuantWithMinMaxVars .
Краткое содержание
Аргументы:
- scope: Объект Scope
- градиенты: Градиенты, полученные обратным распространением ошибки выше операции FakeQuantWithMinMaxVars .
- Входные данные: значения, передаваемые в качестве входных параметров операции 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
Общественные функции
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 )
Открытые статические функции
Узкий диапазон
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )