tensorflow :: ops :: FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>
Hitung gradien untuk operasi FakeQuantWithMinMaxVars .
Ringkasan
Argumen:
- scope: Objek Scope
- gradien: Gradien propagasi mundur di atas operasi FakeQuantWithMinMaxVars .
- input: Nilai yang diteruskan sebagai input ke operasi FakeQuantWithMinMaxVars . min, maks: Interval kuantitas, float skalar.
Atribut opsional (lihat Attrs
):
- num_bits: Lebar bit kuantisasi; antara 2 dan 8, inklusif.
- narrow_range: Apakah akan menghitung menjadi 2 ^ num_bits - 1 nilai yang berbeda.
Pengembalian:
-
Output
backprops_wrt_input: Gradien yang dipropagasi mundur input wrt:gradients * (inputs >= min && inputs <= max)
. -
Output
backprop_wrt_min: Gradien mundur wrt min parameter:sum(gradients * (inputs < min))
. -
Output
backprop_wrt_max: Gradien propagasi mundur wrt parameter maks:sum(gradients * (inputs > max))
.
Pembuat dan Penghancur | |
---|---|
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) |
Structs | |
---|---|
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
NarrowRange
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )