aliran tensor:: operasi:: FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

Hitung gradien untuk operasi FakeQuantWithMinMaxVars .

Ringkasan

Argumen:

Atribut opsional (lihat Attrs ):

  • num_bits: Bitwidth kuantisasi; antara 2 dan 8, inklusif.
  • rentang_sempit: Apakah akan dikuantisasi menjadi 2^num_bits - 1 nilai berbeda.

Pengembalian:

  • Output backprops_wrt_input: Gradien yang dipropagasi mundur dengan input wrt: gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: Gradien yang dipropagasi mundur dengan parameter min: sum(gradients * (inputs < min)) .
  • Output backprop_wrt_max: Gradien yang dipropagasi mundur dengan parameter maks: sum(gradients * (inputs > max)) .

Konstruktor dan Destruktor

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)

Atribut publik

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

Fungsi statis publik

NarrowRange (bool x)
NumBits (int64 x)

Struktur

tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient:: Attrs

Penyetel atribut opsional untuk FakeQuantWithMinMaxVarsGradient .

Atribut publik

backprop_wrt_max

::tensorflow::Output backprop_wrt_max

backprop_wrt_min

::tensorflow::Output backprop_wrt_min

backprops_wrt_input

::tensorflow::Output backprops_wrt_input

operasi

Operation operation

Fungsi publik

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
)

Fungsi statis publik

Rentang Sempit

Attrs NarrowRange(
  bool x
)

NomorBits

Attrs NumBits(
  int64 x
)