tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>FakeQuantWithMinMaxVars操作の勾配を計算します。
まとめ
議論:
- スコープ:スコープオブジェクト
- 勾配: 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: 最小パラメータに関する逆伝播勾配:sum(gradients * (inputs < min))。 -
Outputbackprop_wrt_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のオプション属性設定子。 |
公開属性
バックプロップ_wrt_max
::tensorflow::Output backprop_wrt_max
バックプロップ_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 )
ビット数
Attrs NumBits( int64 x )