텐서플로우:: 작전:: 정렬되지 않은세그먼트 조인
#include <string_ops.h>
segment_ids
기반으로 inputs
요소를 결합합니다.
요약
텐서의 세그먼트를 따라 문자열 조인을 계산합니다. 랭크 N
의 segment_ids
와 랭크 N+M
의 data
제공:
`output[i, k1...kM] = strings.join([data[j1...jN, k1...kM])`
여기서 조인은 모든 [j1...jN]에 걸쳐서 세그먼트_ids[j1...jN] = i가 됩니다. 문자열은 행 우선 순서로 결합됩니다.
예를 들어:
inputs = [['Y', 'q', 'c'], ['Y', '6', '6'], ['p', 'G', 'a']] output_array = string_ops.unsorted_segment_join(inputs=inputs, segment_ids=[1, 0, 1], num_segments=2, separator=':')) # output_array ==> [['Y', '6', '6'], ['Y:p', 'q:G', 'c:a']]
inputs = ['this', 'is', 'a', 'test'] output_array = string_ops.unsorted_segment_join(inputs=inputs, segment_ids=[0, 0, 0, 0], num_segments=1, separator=':')) # output_array ==> ['this:is:a:test']
인수:
- 범위: 범위 개체
- 입력: 조인할 입력입니다.
- Segment_ids: 형태가 data.shape의 접두사인 텐서입니다. 제외 세그먼트 ID는 지원되지 않습니다.
- num_segments: 스칼라.
선택적 속성( Attrs
참조):
- 구분 기호: 조인 시 사용할 구분 기호입니다.
보고:
-
Output
: 출력 텐서.
생성자와 소멸자 | |
---|---|
UnsortedSegmentJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments) | |
UnsortedSegmentJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments, const UnsortedSegmentJoin::Attrs & attrs) |
공개 속성 | |
---|---|
operation | |
output |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
Separator (StringPiece x) |
구조체 | |
---|---|
텐서플로우:: ops:: UnsortedSegmentJoin:: Attrs | UnsortedSegmentJoin 에 대한 선택적 속성 설정자입니다. |
공개 속성
작업
Operation operation
산출
::tensorflow::Output output
공공 기능
정렬되지 않은세그먼트 조인
UnsortedSegmentJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments )
정렬되지 않은세그먼트 조인
UnsortedSegmentJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments, const UnsortedSegmentJoin::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
분리 기호
Attrs Separator( StringPiece x )