تدفق التوتر:: العمليات:: FakeQuantWithMinMaxVarsPerChannel
#include <array_ops.h> قم بتكميم موتر "المدخلات" من النوع float وأحد الأشكال: [d] ,.
ملخص
[b, d] [b, h, w, d] عبر كل قناة تطفو min والحد max للشكل [d] إلى موتر "المخرجات" بنفس شكل inputs .
[min; max] تحديد نطاق التثبيت لبيانات inputs . يتم تكميم قيم inputs في نطاق التكميم ( [0; 2^num_bits - 1] عندما يكون narrow_range خطأ و [1; 2^num_bits - 1] عندما يكون صحيحًا) ثم يتم إلغاء تكميمها وإخراجها كعوامات في [min; max] الفاصل الزمني. num_bits هو عرض البت للتكميم؛ بين 2 و16 شاملاً.
قبل التكميم، يتم ضبط القيم min max باستخدام المنطق التالي. يقترح أن يكون min <= 0 <= max . إذا لم يكن 0 في نطاق القيم، فقد يكون السلوك غير متوقع: إذا كان 0 < min < max : min_adj = 0 و max_adj = max - min . إذا كان min < max < 0 : min_adj = min - max و max_adj = 0 . إذا كانت min <= 0 <= max : scale = (max - min) / (2^num_bits - 1) , min_adj = scale * round(min / scale) و max_adj = max + min_adj - min .
تحتوي هذه العملية على تدرج وبالتالي تسمح بتدريب القيم min max .
الحجج:
- النطاق: كائن النطاق
العوائد:
-
Output: موتر المخرجات.
البنائين والمدمرين | |
|---|---|
FakeQuantWithMinMaxVarsPerChannel (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max) | |
FakeQuantWithMinMaxVarsPerChannel (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannel::Attrs & attrs) |
الصفات العامة | |
|---|---|
operation | |
outputs | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
وظائف ثابتة العامة | |
|---|---|
NarrowRange (bool x) | |
NumBits (int64 x) | |
الهياكل | |
|---|---|
| Tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannel:: Attrs | محددات السمات الاختيارية لـ FakeQuantWithMinMaxVarsPerChannel . |
الصفات العامة
عملية
Operation operation
النواتج
::tensorflow::Output outputs
الوظائف العامة
FakeQuantWithMinMaxVarsPerChannel
FakeQuantWithMinMaxVarsPerChannel( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantWithMinMaxVarsPerChannel
FakeQuantWithMinMaxVarsPerChannel( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannel::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
نطاق ضيق
Attrs NarrowRange( bool x )
نومبيتس
Attrs NumBits( int64 x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)