tensorflow:: ops:: ReduceJoin
#include <string_ops.h>指定された次元にわたって文字列テンソルを結合します。
まとめ
指定された文字列の次元間の文字列結合を計算します。形状は[\\(d_0, d_1, ..., d_{n-1}\\)] 。入力文字列を指定された区切り文字(デフォルト:空文字列)で結合して作成された新しいテンソルを返します。負のインデックスは末尾から逆方向にカウントされ、 -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"
議論:
- スコープ:スコープオブジェクト
- 入力: 結合する入力。すべての縮小インデックスはゼロ以外のサイズを持つ必要があります。
- reduction_indices: 削減対象の次元。次元は指定された順序で削減されます。reduction_indices
reduction_indices省略すると[n-1, n-2, ..., 0]を渡した場合と同等になります。-nから-1までの負のインデックスもサポートされています。
オプション属性( Attrs参照):
- keep_dims:
Trueの場合、長さ1の縮小された次元を保持します。 - 区切り文字:結合時に使用する区切り文字。
返品:
-
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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
キープディムズ
Attrs KeepDims( bool x )
分離器
Attrs Separator( StringPiece x )