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