Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: 정렬되지 않은 SegmentJoin

#include <string_ops.h>

segment_ids 기반으로 inputs 요소를 결합합니다.

요약

텐서의 세그먼트를 따라 문자열 조인을 계산합니다. 순위가 N segment_ids 와 순위가 N+M data :

`output[i, k1...kM] = strings.join([data[j1...jN, k1...kM])`

여기서 조인은 segment_ids [j1 ... jN] = i가되도록 모든 [j1 ... jN]에 있습니다. 문자열은 행 우선 순서로 결합됩니다.

예를 들면 :

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 참조) :

  • 구분 기호 : 결합 할 때 사용할 구분 기호입니다.

보고:

생성자와 소멸자

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)

구조체

tensorflow :: ops :: UnsortedSegmentJoin :: Attrs

UnsortedSegmentJoin에 대한 선택적 속성 설정자.

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

정렬되지 않은 SegmentJoin

 UnsortedSegmentJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments
)

정렬되지 않은 SegmentJoin

 UnsortedSegmentJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments,
  const UnsortedSegmentJoin::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

분리 기호

Attrs Separator(
  StringPiece x
)