tensorflow :: ops :: Yığın
#include <array_ops.h>
N
rank- R
tensörlerinin bir listesini tek rank- (R+1)
tensöre paketler.
Özet
values
N
tensörü, axis
boyutu boyunca paketleyerek, values
her tensörden bir sıra daha yüksek olan bir tensöre paketler. Şekil tensörlerinin bir listesi verildiğinde (A, B, C)
;
axis == 0
ise, output
tensörü şekle (N, A, B, C)
. axis == 1
ise, output
tensörü şekle (A, N, B, C)
. Vb.
Örneğin:
# 'x' is [1, 4] # 'y' is [2, 5] # 'z' is [3, 6] pack([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim. pack([x, y, z], axis=1) => [[1, 2, 3], [4, 5, 6]]
Bu, unpack
tam tersidir.
Argümanlar:
- kapsam: Bir Scope nesnesi
- değerler: Aynı şekilde ve türde olmalıdır.
İsteğe bağlı özellikler (bkz. Attrs
):
- eksen: Paketlenecek boyut. Negatif değerler etrafına sarılır, dolayısıyla geçerli aralık
[-(R+1), R+1)
.
İadeler:
-
Output
: Paketlenmiş tensör.
Yapıcılar ve Yıkıcılar | |
---|---|
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values) | |
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, const Stack::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 | |
---|---|
Axis (int64 x) |
Yapılar | |
---|---|
tensorflow :: ops :: Stack :: Attrs | Yığın için isteğe bağlı öznitelik belirleyiciler. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
Yığın
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values )
Yığın
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values, const Stack::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
Eksen
Attrs Axis( int64 x )