tensorflow:: ops:: RestoreSlice
#include <io_ops.h>チェックポイントファイルからテンソルを復元します。
まとめ
これはRestoreに似ていますが、復元されたテンソルは、より大きなテンソルのスライスのみを埋めるように指定できる点が異なります。shape_and_slice shape_and_slice 、より大きなテンソルの形状と、復元されたテンソルがカバーするスライスを指定します。
shape_and_slice入力は、 SaveSlices操作のshapes_and_slices入力の要素と同じ形式です。
議論:
- スコープ:スコープオブジェクト
- file_pattern: 要素は1つだけである必要があります。テンソルを読み込むファイルのパターンを指定します。
- tensor_name: 要素は1つだけである必要があります。復元するテンソルの名前を指定します。
- shape_and_slice: スカラー値。テンソルを復元する際に使用する形状とスライスの指定。
- dt: 復元するテンソルの型。
オプション属性( Attrs参照):
- preferred_shard:
file_pattern一致するファイルが複数ある場合に最初に開くファイルのインデックス。Restore の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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
優先シャード
Attrs PreferredShard( int64 x )