テンソルフロー::作戦::スライスを復元する

#include <io_ops.h>

チェックポイント ファイルからテンソルを復元します。

まとめ

これはRestoreと似ていますが、復元されたテンソルはより大きなテンソルのスライスのみを埋めるものとしてリストできる点が異なります。 shape_and_sliceより大きなテンソルの形状と、復元されたテンソルがカバーするスライスを指定します。

shape_and_slice入力の形式は、 SaveSlices演算のshapes_and_slices入力の要素と同じです。

引数:

  • スコープ:スコープオブジェクト
  • file_pattern: 単一の要素が必要です。テンソルを読み取るファイルのパターン。
  • tensor_name: 単一の要素が必要です。復元するテンソルの名前。
  • 形状とスライス: スカラー。テンソルを復元するときに使用するシェイプとスライスの仕様。
  • dt: 復元するテンソルのタイプ。

オプションの属性 ( Attrsを参照):

  • preferred_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:: 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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

優先シャード

Attrs PreferredShard(
  int64 x
)