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

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

#include <image_ops.h>

تغيير حجم images المكممة size باستخدام الاستيفاء ثنائي الخطوط الكمية.

ملخص

يجب أن تكون الصور المدخلة والصور المخرجة من الأنواع الكمية.

الحجج:

  • النطاق: كائن النطاق
  • الصور: 4-D بالشكل [batch, height, width, channels] .
  • حجم: = A 1-D int32 التنسور من 2 عناصر: new_height, new_width . الحجم الجديد للصور.

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

  • align_corners: إذا كان هذا صحيحًا ، فستتم محاذاة مراكز بكسلات الزوايا الأربع لموترات الإدخال والإخراج ، مع الاحتفاظ بالقيم عند وحدات بكسل الزاوية. افتراضات على خطأ.

عائدات:

  • resized_images Output : 4-D بالشكل [batch, new_height, new_width, channels] .
  • Output out_min
  • Output out_max

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

QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max)
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs)

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

operation
out_max
out_min
resized_images

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

AlignCorners (bool x)
HalfPixelCenters (bool x)

الهياكل

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

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

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

عملية

Operation operation

out_max

::tensorflow::Output out_max

out_min

::tensorflow::Output out_min

بحجم_الصور

::tensorflow::Output resized_images

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

كمية

 QuantizedResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

كمية

 QuantizedResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const QuantizedResizeBilinear::Attrs & attrs
)

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

محاذاة الزوايا

Attrs AlignCorners(
  bool x
)

HalfPixelCenters

Attrs HalfPixelCenters(
  bool x
)