tensorflow:: ops:: FakeQuantWithMinMaxArgs
#include <array_ops.h>قم بتحويل موتر "المدخلات" من النوع float إلى موتر "المخرجات" من نفس النوع باستخدام التكميم الوهمي.
ملخص
صفات
-
[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.
يُطلق على التكميم اسم التكميم الزائف لأن الناتج لا يزال بنظام الفاصلة العائمة.
الحجج:
- النطاق: كائن النطاق
المرتجعات:
-
Output: موتر المخرجات.
البناة والمدمرون | |
|---|---|
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs) | |
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
outputs | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
Max (float x) | |
Min (float x) | |
NarrowRange (bool x) | |
NumBits (int64 x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: FakeQuantWithMinMaxArgs:: Attrs | مُعدِّلات السمات الاختيارية لـ FakeQuantWithMinMaxArgs . |
السمات العامة
عملية
Operation operation
المخرجات
::tensorflow::Output outputs
الوظائف العامة
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs )
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
الدوال الثابتة العامة
الأعلى
Attrs Max( float x )
مين
Attrs Min( float x )
نطاق ضيق
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)