tensorflow :: ops :: RestoreSlice

#include <io_ops.h>

Mengembalikan tensor dari file pos pemeriksaan.

Ringkasan

Ini seperti Restore kecuali bahwa tensor yang dipulihkan dapat dicantumkan sebagai hanya mengisi sepotong tensor yang lebih besar. shape_and_slice menentukan bentuk tensor yang lebih besar dan potongan yang shape_and_slice oleh tensor yang dipulihkan.

Input shape_and_slice memiliki format yang sama dengan elemen input shapes_and_slices dari operasi SaveSlices .

Argumen:

  • scope: Objek Scope
  • file_pattern: Harus memiliki satu elemen. Pola file tempat kita membaca tensor.
  • tensor_name: Harus memiliki satu elemen. Nama tensor yang akan dipulihkan.
  • shape_and_slice: Skalar. Bentuk dan spesifikasi potongan yang akan digunakan saat memulihkan tensor.
  • dt: Jenis tensor yang akan dipulihkan.

Atribut opsional (lihat Attrs ):

  • Preferensi_shard: Indeks file yang akan dibuka pertama kali jika beberapa file cocok dengan file_pattern . Lihat dokumentasi untuk Restore .

Pengembalian:

  • Output : Tensor yang dipulihkan.

Pembangun dan Penghancur

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)

Atribut publik

operation
tensor

Fungsi publik

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

Fungsi statis publik

PreferredShard (int64 x)

Structs

tensorflow :: ops :: RestoreSlice :: Attrs

Penyetel atribut opsional untuk RestoreSlice .

Atribut publik

operasi

Operation operation

tensor

::tensorflow::Output tensor

Fungsi publik

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
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

PreferredShard

Attrs PreferredShard(
  int64 x
)