テンソルフロー::作戦::減らす結合する

#include <string_ops.h>

指定された次元にわたって文字列テンソルを結合します。

まとめ

形状[\\(d_0, d_1, ..., d_{n-1}\\)]の指定された文字列テンソルの次元にわたる文字列結合を計算します。入力文字列を指定された区切り文字で結合することによって作成された新しいTensorを返します (デフォルト: 空の文字列)。負のインデックスは最後から逆にカウントされ、 -1n - 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"

引数:

  • スコープ:スコープオブジェクト
  • inputs: 結合される入力。すべての縮小インデックスのサイズはゼロ以外でなければなりません。
  • duction_indices: 削減するディメンション。寸法は指定された順序で縮小されます。 reduction_indicesを省略すること[n-1, n-2, ..., 0]を渡すことと同じです。 -nから-1までの負のインデックスがサポートされます。

オプションの属性 ( Attrsを参照):

  • keep_dims: Trueの場合、長さ1の縮小された次元を保持します。
  • separator: 結合するときに使用するセパレータ。

戻り値:

  • Output : keep_dimsに応じて、削減された次元が削除されるか1に設定された入力と同じ形状を持ちます。

コンストラクターとデストラクター

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(
  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
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

KeepDims

Attrs KeepDims(
  bool x
)

セパレータ

Attrs Separator(
  StringPiece x
)