テンソルフロー::作戦:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>FakeQuantWithMinMaxVarsPerChannel操作の勾配を計算します。
まとめ
引数:
- スコープ:スコープオブジェクト
- 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: 最小パラメーターに対する逆伝播された勾配、形状[d]:sum_per_d(gradients * (inputs < min))。 -
Outputbackprop_wrt_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
公共機能
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 )
パブリック静的関数
狭い範囲
Attrs NarrowRange( bool x )
ビット数
Attrs NumBits( int64 x )