テンソルフロー::作戦:: SparseToTensorsMap を追加

#include <sparse_ops.h>

SparseTensor SparseTensorsMap追加すると、そのハンドルが返されます。

まとめ

SparseTensor sparse_indicessparse_values 、およびsparse_shapeの 3 つのテンソルで表されます。

この演算子は、指定されたSparseTensor取得し、それをコンテナー オブジェクト ( SparseTensorsMap ) に追加します。このコンテナ内の一意のキーはint64の形式で生成され、これが返される値です。

その後、キーをベクトル要素としてTakeManySparseFromTensorsMapに渡すことで、 SparseTensorミニバッチの一部として読み出すことができます。正しいSparseTensorsMapにアクセスできるようにするには、同じcontainershared_nameがそのOpに渡されていることを確認してください。ここでshared_name指定されていない場合は、代わりに、 AddSparseToTensorsMap呼び出して作成されたオペレーション名前をTakeManySparseFromTensorsMapに渡されるshared_nameとして使用します。オペレーションが同じ場所に配置されていることを確認します。

引数:

  • スコープ:スコープオブジェクト
  • sparse_indices: 2 次元。 SparseTensorindices
  • sparse_values: 1-D。 SparseTensorvalues
  • sparse_shape: 1-D。 SparseTensorshape

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

  • コンテナ: この操作によって作成されるSparseTensorsMapのコンテナ名。
  • shared_name: この操作によって作成されたSparseTensorsMapの共有名。空白の場合、新しいOperationの一意の名前が使用されます。

戻り値:

  • Output : 0-D。 SparseTensorのハンドルはSparseTensorsMapに保存されました。

コンストラクターとデストラクター

AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const AddSparseToTensorsMap::Attrs & attrs)

パブリック属性

operation
sparse_handle

公共機能

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

パブリック静的関数

Container (StringPiece x)
SharedName (StringPiece x)

構造体

tensorflow:: ops:: AddSparseToTensorsMap:: Attrs

AddSparseToTensorsMapのオプションの属性セッター。

パブリック属性

手術

Operation operation

sparse_handle

::tensorflow::Output sparse_handle

公共機能

SparseToTensorsMap を追加

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SparseToTensorsMap を追加

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const AddSparseToTensorsMap::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

容器

Attrs Container(
  StringPiece x
)

共有名

Attrs SharedName(
  StringPiece x
)

テンソルフロー::作戦:: SparseToTensorsMap を追加

#include <sparse_ops.h>

SparseTensor SparseTensorsMap追加すると、そのハンドルが返されます。

まとめ

SparseTensor sparse_indicessparse_values 、およびsparse_shapeの 3 つのテンソルで表されます。

この演算子は、指定されたSparseTensor取得し、それをコンテナー オブジェクト ( SparseTensorsMap ) に追加します。このコンテナ内の一意のキーはint64の形式で生成され、これが返される値です。

その後、キーをベクトル要素としてTakeManySparseFromTensorsMapに渡すことで、 SparseTensorミニバッチの一部として読み出すことができます。正しいSparseTensorsMapにアクセスできるようにするには、同じcontainershared_nameがそのOpに渡されていることを確認してください。ここでshared_name指定されていない場合は、代わりに、 AddSparseToTensorsMap呼び出して作成されたオペレーション名前をTakeManySparseFromTensorsMapに渡されるshared_nameとして使用します。オペレーションが同じ場所に配置されていることを確認します。

引数:

  • スコープ:スコープオブジェクト
  • sparse_indices: 2 次元。 SparseTensorindices
  • sparse_values: 1-D。 SparseTensorvalues
  • sparse_shape: 1-D。 SparseTensorshape

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

  • コンテナ: この操作によって作成されるSparseTensorsMapのコンテナ名。
  • shared_name: この操作によって作成されたSparseTensorsMapの共有名。空白の場合、新しいOperationの一意の名前が使用されます。

戻り値:

  • Output : 0-D。 SparseTensorのハンドルはSparseTensorsMapに保存されました。

コンストラクターとデストラクター

AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const AddSparseToTensorsMap::Attrs & attrs)

パブリック属性

operation
sparse_handle

公共機能

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

パブリック静的関数

Container (StringPiece x)
SharedName (StringPiece x)

構造体

tensorflow:: ops:: AddSparseToTensorsMap:: Attrs

AddSparseToTensorsMapのオプションの属性セッター。

パブリック属性

手術

Operation operation

sparse_handle

::tensorflow::Output sparse_handle

公共機能

SparseToTensorsMap を追加

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SparseToTensorsMap を追加

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const AddSparseToTensorsMap::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

容器

Attrs Container(
  StringPiece x
)

共有名

Attrs SharedName(
  StringPiece x
)