tensorflow :: ops :: Katıl
#include <string_ops.h>
Verilen boyutlarda bir dizi Tensörüne katılır.
Özet
Dize dize verilen boyutlar arasında birleştirme hesaplar Tensörünün şeklinin [\\(d_0, d_1, ..., d_{n-1}\\)]
. Girdi dizelerini verilen ayırıcıyla birleştirerek oluşturulan yeni bir Tensör döndürür (varsayılan: boş dize). Negatif endeksler, -1
ile n - 1
eşit olacak şekilde, sondan geriye doğru sayılır. Endeksler belirtilmezse, n - 1
0
kadar tüm boyutlarda birleşir.
Ö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 Scope nesnesi
- inputs: Birleştirilecek giriş. Tüm indirgenmiş endeksler sıfır olmayan boyuta sahip olmalıdır.
- indirgeme_indisleri: Azaltılacak boyutlar. Boyutlar belirtilen sırayla küçültülür.
reduction_indices
endekslerinin atlanması[n-1, n-2, ..., 0]
geçmeye eşdeğerdir.-n
-1
negatif endeksler desteklenir.
İsteğe bağlı özellikler (bkz. Attrs
):
- keep_dims:
True
,1
uzunluğunda küçültülmüş boyutları koruyun. - ayırıcı: Katılırken kullanılacak ayırıcı.
İadeler:
-
Output
: kaldırılması veya ayarlanmış düşük boyutlara sahip giriş edilene eşit bir şekle sahiptir1
bağlıkeep_dims
.
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 |
Genel statik işlevler | |
---|---|
KeepDims (bool x) | |
Separator (StringPiece x) |
Yapılar | |
---|---|
tensorflow :: ops :: ReduceJoin :: Attrs | ReduceJoin için isteğe bağlı öznitelik belirleyicileri. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
Katıl
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices )
Katıl
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
KeepDims
Attrs KeepDims( bool x )
Ayırıcı
Attrs Separator( StringPiece x )