tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>FakeQuantWithMinMaxVarsPerChannel ऑपरेशन के लिए ग्रेडिएंट की गणना करें।
सारांश
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- ग्रेडिएंट्स: फेकक्वांटविथमिनमैक्सवेर्स ऑपरेशन के ऊपर बैकप्रोपैगेटेड ग्रेडिएंट्स, आकार इनमें से एक:
[d],[b, d],[b, h, w, d]। - इनपुट: FakeQuantWithMinMaxVars ऑपरेशन में इनपुट के रूप में पास किए गए मान, आकार
gradientsके समान। न्यूनतम, अधिकतम: परिमाणीकरण अंतराल,[d]आकार के फ्लोट।
वैकल्पिक विशेषताएँ (देखें Attrs ):
- num_bits: क्वांटाइजेशन की बिटविड्थ; 2 से 16 के बीच, दोनों मान शामिल हैं।
- narrow_range: क्या 2^num_bits - 1 अलग-अलग मानों में परिमाणीकरण करना है।
प्रतिफल:
-
Outputबैकप्रॉप्स_wrt_इनपुट: इनपुट के संबंध में बैकप्रॉपेगेटेड ग्रेडिएंट, आकारinputsके समान:gradients * (inputs >= min && inputs <= max)। -
Outputबैकप्रॉप_wrt_min: न्यूनतम पैरामीटर के सापेक्ष बैकप्रॉपेगेटेड ग्रेडिएंट, आकार[d]:sum_per_d(gradients * (inputs < min)). -
Outputबैकप्रॉप_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
बैकप्रॉप्स_डब्ल्यूआरटी_इनपुट
::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 )