tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannel
#include <array_ops.h> قم بتكميم موتر "المدخلات" من النوع float وأحد الأشكال: [d] ,.
ملخص
[b, d] [b, h, w, d] عبر قيم عائمة لكل قناة 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 (حسب التوقيت العالمي المتفَّق عليه)