tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannel
#include <array_ops.h>قم بتكميم موتر "المدخلات" من النوع float عبر الأعداد العشرية لكل قناة.
ملخص
قم بتكميم inputs من نوع float لكل قناة وأحد الأشكال: [d] ، [b, d] [b, h, w, d] عبر قيم float min max لكل قناة من الشكل [d] إلى موتر outputs بنفس شكل 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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
الدوال الثابتة العامة
نطاق ضيق
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)