tensorflow :: ops :: FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>
FakeQuantWithMinMaxVars操作の勾配を計算します。
概要
引数:
- スコープ:スコープオブジェクト
- グラデーション: FakeQuantWithMinMaxVars操作の上の逆伝播されたグラデーション。
- 入力: FakeQuantWithMinMaxVars操作への入力として渡される値。最小、最大:量子化間隔、スカラーフロート。
オプションの属性(参照Attrs
):
- num_bits:量子化のビット幅。 2から8まで。
- ナローレンジ:2 ^ num_bits-1つの異なる値に量子化するかどうか。
戻り値:
-
Output
backprops_wrt_input:逆伝播された勾配wrt入力:gradients * (inputs >= min && inputs <= max)
。 -
Output
backprop_wrt_min:逆伝播された勾配wrt minパラメーター:sum(gradients * (inputs < min))
。 -
Output
backprop_wrt_max:逆伝播された勾配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のオプションの属性セッター。 |
パブリック属性
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 )