tensorflow::ops::ReduceJoin
#include <string_ops.h>Verilen boyutlar boyunca bir dize tensörünü birleştirir.
Özet
Verilen [\\(d_0, d_1, ..., d_{n-1}\\)] şeklindeki dize Tensöründe boyutlar arası dize birleştirmesini hesaplar. [\\(d_0, d_1, ..., d_{n-1}\\)] Verilen ayırıcı (varsayılan: boş dize) ile giriş dizelerini birleştirerek oluşturulan yeni bir Tensor [\\(d_0, d_1, ..., d_{n-1}\\)] . Negatif indeksler sondan geriye doğru sayılır, -1 n - 1 eşdeğerdir. İndeksler belirtilmezse, n - 1 0 kadar tüm boyutlarda birleştirme yapılır.
Örneğin:
# 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"
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Girişler: Birleştirilecek giriş. Tüm indirgenmiş indekslerin sıfırdan farklı bir boyuta sahip olması gerekir.
- reduction_indices: İndirgeme yapılacak boyutlar. Boyutlar belirtilen sırayla indirgenir.
reduction_indicesbelirtilmemesi[n-1, n-2, ..., 0]geçirilmesine eşdeğerdir.-nile-1arasındaki negatif indeksler desteklenir.
İsteğe bağlı özellikler (bkz. Attrs ):
- keep_dims:
Trueise, uzunluğu1olan azaltılmış boyutları koruyun. - ayırıcı: Birleştirme sırasında kullanılacak ayırıcı.
İadeler:
-
Output: Girişin şekline eşit, ancak azaltılmış boyutlarıkeep_dimsbağlı olarak) kaldırılmış veya1ayarlanmış bir çıktıdır.
Yapıcılar ve Yıkıcılar | |
|---|---|
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) |
Genel özellikler | |
|---|---|
operation | |
output | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Herkese açık statik fonksiyonlar | |
|---|---|
KeepDims (bool x) | |
Separator (StringPiece x) | |
Yapılar | |
|---|---|
| tensorflow::ops::ReduceJoin::Attrs | ReduceJoin için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
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 )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
KeepDims
Attrs KeepDims( bool x )
Ayırıcı
Attrs Separator( StringPiece x )