نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: كمي

#include <nn_ops.h>

يحسب التفافًا ثنائي الأبعاد وفقًا لمدخلات 4D الكمية وموترات التصفية.

ملخص

المدخلات عبارة عن موترات كمية حيث تمثل أدنى قيمة العدد الحقيقي للحد الأدنى المرتبط ، وتمثل أعلى قيمة الحد الأقصى. هذا يعني أنه يمكنك فقط تفسير الناتج المحسوب بنفس الطريقة ، من خلال مراعاة القيم الدنيا والقصوى التي تم إرجاعها.

الحجج:

  • النطاق: كائن النطاق
  • عامل التصفية: يجب أن يتطابق بُعد عمق الإدخال للمرشح مع أبعاد عمق الإدخال.
  • min_input: القيمة العائمة التي تمثلها أدنى قيمة كمية للمدخلات.
  • max_input: القيمة العائمة التي تمثلها أعلى قيمة مدخلات كمية.
  • min_filter: القيمة العائمة التي تمثلها أدنى قيمة للمرشح الكمي.
  • max_filter: القيمة العائمة التي تمثلها أعلى قيمة ترشيح كمية.
  • strides: خطوة النافذة المنزلقة لكل بعد من أبعاد موتر الإدخال.
  • المساحة المتروكة: نوع خوارزمية الحشو المراد استخدامها.

السمات الاختيارية (انظر Attrs ):

  • التوسعات: موتر 1-D بطول 4. عامل التمدد لكل بعد من أبعاد input . إذا تم التعيين على k> 1 ، فسيكون هناك k-1 خلايا تم تخطيها بين كل عنصر مرشح على هذا البعد. يتم تحديد ترتيب البعد بواسطة قيمة data_format ، انظر أعلاه للحصول على التفاصيل. يجب أن يكون التمدد في أبعاد الدُفعة والعمق 1.

عائدات:

  • Output الإخراج
  • Output min_output: القيمة العائمة التي تمثلها أدنى قيمة مخرجات كمية.
  • Output max_output: القيمة العائمة التي تمثلها أعلى قيمة كمية للإخراج.

البنائين والمدمرين

QuantizedConv2D (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, :: tensorflow::Input min_input, :: tensorflow::Input max_input, :: tensorflow::Input min_filter, :: tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding)
QuantizedConv2D (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, :: tensorflow::Input min_input, :: tensorflow::Input max_input, :: tensorflow::Input min_filter, :: tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const QuantizedConv2D::Attrs & attrs)

السمات العامة

max_output
min_output
operation
output

وظائف ثابتة عامة

Dilations (const gtl::ArraySlice< int > & x)
OutType (DataType x)

الهياكل

tensorflow :: العمليات :: QuantizedConv2D :: Attrs

محددات السمات الاختيارية لـ QuantizedConv2D .

السمات العامة

أقصى انتاج

::tensorflow::Output max_output

min_output

::tensorflow::Output min_output

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

كمي

 QuantizedConv2D(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input filter,
  ::tensorflow::Input min_input,
  ::tensorflow::Input max_input,
  ::tensorflow::Input min_filter,
  ::tensorflow::Input max_filter,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

كمي

 QuantizedConv2D(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input filter,
  ::tensorflow::Input min_input,
  ::tensorflow::Input max_input,
  ::tensorflow::Input min_filter,
  ::tensorflow::Input max_filter,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const QuantizedConv2D::Attrs & attrs
)

وظائف ثابتة عامة

تمدد

Attrs Dilations(
  const gtl::ArraySlice< int > & x
)

OutType

Attrs OutType(
  DataType x
)