tensor akışı:: işlem:: Dilim'i Geri Yükle
#include <io_ops.h>Bir tensörü denetim noktası dosyalarından geri yükler.
Özet
Bu, geri yüklenen tensörün daha büyük bir tensörün yalnızca bir dilimini dolduracak şekilde listelenebilmesi dışında Restore benzer. shape_and_slice daha büyük tensörün şeklini ve geri yüklenen tensörün kapladığı dilimi belirtir.
shape_and_slice girişi, SaveSlices işleminin shapes_and_slices girişinin öğeleriyle aynı formata sahiptir.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- file_pattern: Tek bir öğeye sahip olmalıdır. Tensörü okuduğumuz dosyaların deseni.
- tensor_name: Tek bir öğeye sahip olmalıdır. Geri yüklenecek tensörün adı.
- Shape_and_slice: "Skaler." Tensörleri geri yüklerken kullanılacak şekiller ve dilim özellikleri.
- dt: Geri yüklenecek tensörün türü.
İsteğe bağlı özellikler (bkz. Attrs ):
- tercih edilen_shard: Birden fazla dosya
file_patternile eşleşirse ilk açılacak dosya dizini.Restorebelgelerine bakın.
İade:
-
Output: Geri yüklenen tensör.
Yapıcılar ve Yıkıcılar | |
|---|---|
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) |
Genel özellikler | |
|---|---|
operation | |
tensor | |
Kamu işlevleri | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel statik işlevler | |
|---|---|
PreferredShard (int64 x) | |
Yapılar | |
|---|---|
| tensorflow:: ops:: RestoreSlice:: Öznitelikler | RestoreSlice için isteğe bağlı özellik ayarlayıcılar. |
Genel özellikler
operasyon
Operation operation
tensör
::tensorflow::Output tensor
Kamu işlevleri
Dilim'i Geri Yükle
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt )
Dilim'i Geri Yükle
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Tercih Edilen Parça
Attrs PreferredShard( int64 x )