tensorflow :: ops :: ReduceJoin
#include <string_ops.h>
주어진 차원에서 문자열 Tensor 를 결합합니다.
요약
주어진 문자열 Tensor of shape [\\(d_0, d_1, ..., d_{n-1}\\)]
에서 차원에 걸친 문자열 결합을 계산합니다. 입력 문자열을 주어진 구분 기호 (기본값 : 빈 문자열)로 결합하여 생성 된 새 Tensor를 반환합니다. 음수 인덱스는 끝부터 역순으로 계산되며 -1
은 n - 1
과 동일합니다. 인덱스가 지정되지 않은 경우 n - 1
부터 0
까지 모든 차원에서 조인합니다.
예를 들면 :
# tensor `a` is [["a", "b"], ["c", "d"]] tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]] tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]] tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"] tf.reduce_join(a, [0, 1]) ==> "acbd" tf.reduce_join(a, [1, 0]) ==> "abcd" tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]] tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd"
인수 :
- 범위 : 범위 개체
- 입력 : 결합 할 입력입니다. 축소 된 모든 인덱스의 크기는 0이 아니어야합니다.
- reduction_indices : 축소 할 차원입니다. 치수는 지정된 순서대로 줄어 듭니다.
reduction_indices
생략하는 것은[n-1, n-2, ..., 0]
을 전달하는 것과 같습니다.-n
에서-1
까지의 음수 인덱스가 지원됩니다.
선택적 속성 ( Attrs
참조) :
- keep_dims :
True
이면 길이가1
축소 된 치수를 유지합니다. - 구분 기호 : 결합 할 때 사용할 구분 기호입니다.
보고:
-
Output
: 감소 된 차원이 제거되거나keep_dims
에 따라1
설정된 입력과 동일한 모양을keep_dims
.
생성자와 소멸자 | |
---|---|
ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices) | |
ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs) |
공용 속성 | |
---|---|
operation | |
output |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
KeepDims (bool x) | |
Separator (StringPiece x) |
구조체 | |
---|---|
tensorflow :: ops :: ReduceJoin :: Attrs | ReduceJoin에 대한 선택적 속성 설정자. |
공용 속성
조작
Operation operation
산출
::tensorflow::Output output
공공 기능
ReduceJoin
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices )
ReduceJoin
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const
공개 정적 함수
KeepDims
Attrs KeepDims( bool x )
분리 기호
Attrs Separator( StringPiece x )