tensorflow :: ops :: SparseSegmentMean
#include <math_ops.h>
テンソルのスパースセグメントに沿った平均を計算します。
概要
使用例については、 tf.sparse.segment_sum
を参照してください。
SegmentMean
と同様SegmentMean
が、 segment_ids
は、 indices
で指定されたディメンション0のサブセットを選択して、 data
の最初のディメンションよりも低いランクを持つことができindices
。
引数:
- スコープ:スコープオブジェクト
- インデックス:1-Dテンソル。
segment_ids
と同じランク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
SparseSegmentMean( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids )
ノード
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const