tensorflow:: ops:: שינוי גודל דו-ליניארי

#include <image_ops.h>

שינוי גודל images size באמצעות אינטרפולציה דו-לינארית.

תַקצִיר

תמונות קלט יכולות להיות מסוגים שונים, אך תמונות פלט תמיד הן צפות.

טיעונים:

  • היקף: אובייקט היקף
  • תמונות: 4-D עם צורה [batch, height, width, channels] .
  • size: = טנזור int32 חד-ממדי של 2 אלמנטים: new_height, new_width . הגודל החדש עבור התמונות.

מאפיינים אופציונליים (ראה Attrs ):

  • align_corners: אם true, מרכזי 4 הפיקסלים בפינות של טנזורי הקלט והפלט מיושרים, תוך שמירה על הערכים בפיקסלים בפינות. ברירת המחדל היא false.

החזרות:

  • Output : 4-ממדי עם צורה [batch, new_height, new_width, channels] .

בנאים והורסים

ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size)
ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBilinear::Attrs & attrs)

מאפיינים ציבוריים

operation
resized_images

תפקידים ציבוריים

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

פונקציות סטטיות ציבוריות

AlignCorners (bool x)
HalfPixelCenters (bool x)

מבנים

tensorflow:: ops:: ResizeBilinear:: Attrs

קובעי מאפיינים אופציונליים עבור ResizeBilinear .

מאפיינים ציבוריים

מִבצָע

Operation operation

תמונות_שונות_גודל

::tensorflow::Output resized_images

תפקידים ציבוריים

שינוי גודל דו-ליניארי

 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)

שינוי גודל דו-ליניארי

 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeBilinear::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

יישור פינות

Attrs AlignCorners(
  bool x
)

מרכזי חצי פיקסל

Attrs HalfPixelCenters(
  bool x
)