tensorflow:: ops:: SegmentMax
#include <math_ops.h>テンソルの各セグメントに沿った最大値を計算します。
まとめ
セグメントの説明については、セグメンテーションに関するセクションをお読みください。
次のようなテンソルを計算します。 \(output_i = (data_j)\) where max is over j such that segment_ids[j] == i .
If the max is empty for a given segment ID i , output[i] = 0 .

例えば:
c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) tf.segment_max(c, tf.constant([0, 0, 1])) # ==> [[4, 3, 3, 4], # [5, 6, 7, 8]]
議論:
- スコープ:スコープオブジェクト
- segment_ids: A 1-D tensor whose size is equal to the size of
data's first dimension. Values should be sorted and can be repeated.
返品:
-
Output: Has same shape as data, except for dimension 0 which has sizek, the number of segments.
コンストラクターとデストラクタ | |
|---|---|
SegmentMax (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input segment_ids) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
公開属性
手術
Operation operation
出力
::tensorflow::Output output
公的機能
セグメント最大
SegmentMax( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input segment_ids )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const