tensorflow :: ops :: SegmentMax
#include <math_ops.h>
텐서의 세그먼트를 따라 최대 값을 계산합니다.
요약
세그먼트 에 대한 설명은 세분화 섹션을 참조 하십시오 .
\(output_i = (data_j)\)이되는 텐서를 계산합니다. 여기서 max
는 j
이상 j
segment_ids[j] == i
입니다.
주어진 세그먼트 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 : 크기가
data
의 첫 번째 차원 크기와 같은 1 차원 텐서입니다. 값은 정렬되어야하며 반복 될 수 있습니다.
보고:
-
Output
: 세그먼트 수인 크기가k
인 차원 0을 제외하고 데이터와 모양이 동일합니다.
생성자와 소멸자 | |
---|---|
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
SegmentMax( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input segment_ids )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const