テンソルフロー::作戦::スパースセグメント平均
#include <math_ops.h>テンソルの疎なセグメントに沿った平均を計算します。
まとめ
使用例については、 tf.sparse.segment_sumを参照してください。
 SegmentMeanと似ていますが、 segment_ids dataの最初の次元よりも低いランクを持つことができ、 indicesで指定された次元 0 のサブセットを選択します。
引数:
- スコープ:スコープオブジェクト
- インデックス: 1 次元テンソル。ランクはsegment_idsと同じです。
- segment_ids: 1 次元テンソル。値は並べ替える必要があり、繰り返すことができます。
戻り値:
-  Output: サイズk、つまりセグメントの数を持つ次元 0 を除き、データと同じ形状を持ちます。
| コンストラクターとデストラクター | |
|---|---|
| SparseSegmentMean (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input indices, :: tensorflow::Input segment_ids) | 
| パブリック属性 | |
|---|---|
| operation | |
| output | |
| 公共機能 | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
パブリック属性
手術
Operation operation
出力
::tensorflow::Output output
公共機能
スパースセグメント平均
SparseSegmentMean( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const