テンソルフロー::作戦::スパースデンスCwiseAdd
#include <sparse_ops.h>次の特別なルールを使用して、 SparseTensor と Density Tensorを加算します。
まとめ
(1) 適格であれば、密な側を疎な側と同じ形状になるようにブロードキャストします。 (2) 次に、SparseTensor のインデックスによって指定された密な値のみが cwise 加算に参加します。
これらのルールにより、結果はまったく同じインデックスと形状を持つ論理 SparseTensor になりますが、ゼロ以外の値が異なる可能性があります。この Op の出力は、結果として得られる非ゼロ値です。
引数:
- スコープ:スコープオブジェクト
- sp_indices: 2 次元。 SparseTensor 内の空でない値のインデックスを含むN x R行列 (標準的な順序付けではない可能性があります)。
-  sp_values: 1-D。 sp_indicesに対応するNの空でない値。
- sp_shape: 1-D。入力 SparseTensor の形状。
- 密: R。高密度Tensorオペランド。
戻り値:
-  Output: 1-D。演算対象となる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
公共機能
スパースデンスCwiseAdd
SparseDenseCwiseAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input sp_indices, ::tensorflow::Input sp_values, ::tensorflow::Input sp_shape, ::tensorflow::Input dense )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const