تدفق التوتر:: العمليات:: استعادة شريحة

#include <io_ops.h>

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

ملخص

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

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

الحجج:

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

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

  • Favorite_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 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

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

مفضلShard

Attrs PreferredShard(
  int64 x
)