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

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

#include <io_ops.h>

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

ملخص

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

المدخلات shape_and_slice لها نفس تنسيق عناصر مدخلات shapes_and_slices الخاصة SaveSlices .

الحجج:

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

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

  • favourite_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 :: العمليات :: 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 :: Output

 operator::tensorflow::Output() const 

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

المفضلشارد

Attrs PreferredShard(
  int64 x
)