tensorflow:: ops:: SparseDenseCwiseAdd

#include <sparse_ops.h>

疎テンソルと密テンソルを、以下の特別なルールを使用して加算します。

まとめ

(1)可能であれば、密な側を疎な側と同じ形状になるようにブロードキャストします。(2)次に、SparseTensor のインデックスが指す密な値のみが cwise 加算に参加します。

これらのルールに従うと、結果として得られるのは、インデックスと形状は全く同じだが、非ゼロの値が異なる場合があります。この演算の出力は、結果として得られる非ゼロの値です。

議論:

  • スコープ:スコープオブジェクト
  • sp_indices: 2次元。SparseTensor内の空でない値のインデックスを含むN x R行列。正規順序ではない可能性があります。
  • sp_indices : 1次元。sp_indicesに対応するN個の空でない値。
  • sp_shape: 1次元。入力SparseTensorの形状。
  • 密: R -D。密なテンソルオペランド。

返品:

  • Output :1次元。演算対象となるNの値。

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

SparseDenseCwiseAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input sp_indices, :: tensorflow::Input sp_values, :: tensorflow::Input sp_shape, :: tensorflow::Input dense)

公開属性

operation
output

公的機能

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

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

SparseDenseCwiseAdd

 SparseDenseCwiseAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sp_indices,
  ::tensorflow::Input sp_values,
  ::tensorflow::Input sp_shape,
  ::tensorflow::Input dense
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const