tensorflow:: אופס:: RestoreSlice

#include <io_ops.h>

משחזר טנזור מקבצי נקודת ביקורת.

סיכום

זה כמו Restore פרט לכך שניתן לרשום טנזור משוחזר כממלא רק פרוסה של טנזור גדול יותר. shape_and_slice מציין את הצורה של הטנסור הגדול יותר ואת הפרוסה שהטנזור המשוחזר מכסה.

לקלט shape_and_slice יש את אותו פורמט כמו הרכיבים של הקלט shapes_and_slices של ה-Opp SaveSlices .

טיעונים:

  • scope: אובייקט Scope
  • file_pattern: חייב להיות רכיב בודד. תבנית הקבצים שמהם אנו קוראים את הטנזור.
  • tensor_name: חייב להיות אלמנט בודד. שם הטנזור שיש לשחזר.
  • shape_and_slice: סקלר. הצורות והמפרטים של הפרוסות לשימוש בעת שחזור טנסור.
  • dt: סוג הטנזור שיש לשחזר.

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

  • prefered_shard: אינדקס הקובץ שייפתח תחילה אם מספר קבצים תואמים file_pattern . עיין בתיעוד עבור Restore .

החזרות:

  • Output : הטנזור המשוחזר.

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

RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt)
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs)

תכונות ציבוריות

operation
tensor

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

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

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

PreferredShard (int64 x)

מבנים

tensorflow:: ops:: RestoreSlice:: Attrs

קובעי תכונות אופציונליים עבור RestoreSlice .

תכונות ציבוריות

מבצע

Operation operation

מוֹתֵחַ

::tensorflow::Output tensor

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

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt
)

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt,
  const RestoreSlice::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

PreferredShard

Attrs PreferredShard(
  int64 x
)