tensorflow:: ops:: RestoreSlice

#include <io_ops.h>

يستعيد موترًا من ملفات نقاط التفتيش.

ملخص

يشبه هذا الأمر Restore إلا أنه يمكن إدراج الموتر المستعاد على أنه يملأ شريحة فقط من موتر أكبر. يحدد shape_and_slice شكل الموتر الأكبر والشريحة التي يغطيها الموتر المستعاد.

يحتوي مدخل shape_and_slice على نفس تنسيق عناصر مدخل shapes_and_slices الخاص بعملية SaveSlices .

الحجج:

  • النطاق: كائن النطاق
  • file_pattern: يجب أن يحتوي على عنصر واحد. نمط الملفات التي نقرأ منها الموتر.
  • اسم الموتر: يجب أن يحتوي على عنصر واحد. اسم الموتر المراد استعادته.
  • shape_and_slice: قيمة عددية. الأشكال ومواصفات الشرائح التي سيتم استخدامها عند استعادة الموترات.
  • dt: نوع الموتر المراد استعادته.

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

  • preferred_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(
  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
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

بريفيرد شارد

Attrs PreferredShard(
  int64 x
)