tensorflow::ops::RestoreSlice

#include <io_ops.h>

Mengembalikan tensor dari file checkpoint.

Ringkasan

Ini mirip dengan Restore kecuali bahwa tensor yang dipulihkan dapat dicantumkan hanya sebagai pengisi sebagian dari tensor yang lebih besar. shape_and_slice menentukan bentuk tensor yang lebih besar dan bagian yang dicakup oleh tensor yang dipulihkan.

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

Argumen:

  • Cakupan: Objek Cakupan
  • file_pattern: Harus memiliki satu elemen. Pola file dari mana kita membaca tensor.
  • tensor_name: Harus memiliki satu elemen. Nama tensor yang akan dipulihkan.
  • shape_and_slice: Skalar. Spesifikasi bentuk dan irisan yang akan digunakan saat memulihkan tensor.
  • dt: Tipe tensor yang akan dipulihkan.

Atribut opsional (lihat Attrs ):

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

Mengembalikan:

  • Output : Tensor yang telah dipulihkan.

Konstruktor dan Destruktor

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)

Struktur

tensorflow::ops::RestoreSlice::Attrs

Pengaturan atribut opsional untuk RestoreSlice .

Atribut publik

operasi

Operation operation

tensor

::tensorflow::Output tensor

Fungsi publik

Pulihkan Irisan

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

Pulihkan Irisan

 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::Output

 operator::tensorflow::Output() const 

Fungsi statis publik

Pecahan Pilihan

Attrs PreferredShard(
  int64 x
)