tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>FakeQuantWithMinMaxVarsPerChannel操作の勾配を計算します。
まとめ
議論:
- スコープ:スコープオブジェクト
- 勾配: FakeQuantWithMinMaxVars操作より上の逆伝播勾配。形状は
[d]、[b, d]、[b, h, w, d]のいずれか。 - inputs: FakeQuantWithMinMaxVars操作への入力として渡される値。形状は
gradientsと同じです。 min、max: 量子化間隔。形状は float で[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のオプション属性セッター。 |
公開属性
バックプロップ_wrt_max
::tensorflow::Output backprop_wrt_max
バックプロップ_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 )