テンソルフロー::作戦:: FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

FakeQuantWithMinMaxVars操作の勾配を計算します。

まとめ

引数:

オプションの属性 ( Attrsを参照):

  • num_bits: 量子化のビット幅。 2 から 8 まで (両端の値を含む)
  • Narrow_range: 2^num_bits - 1 個の個別の値に量子化するかどうか。

戻り値:

  • Output backprops_wrt_input: 逆伝播された勾配 wrt inputs: gradients * (inputs >= min && inputs <= max)
  • Output backprop_wrt_min: 最小パラメーターに対する逆伝播された勾配: sum(gradients * (inputs < min))
  • Output backprop_wrt_max: 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
)

ビット数

Attrs NumBits(
  int64 x
)