Tensorflow :: ops :: Stapel
#include <array_ops.h>
Packt eine Liste von N
Rang- R
Tensoren in einen Rang- (R+1)
Tensor.
Zusammenfassung
Packt die N
Tensoren in values
in einen Tensor mit einem höheren Rang als jeder Tensor in values
, indem sie entlang der axis
gepackt werden. Gegeben eine Liste von Tensoren der Form (A, B, C)
;
Wenn die axis == 0
ist, hat der output
die Form (N, A, B, C)
. Wenn die axis == 1
ist, hat der output
die Form (A, N, B, C)
. Usw.
Beispielsweise:
# '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]]
Dies ist das Gegenteil von unpack
.
Argumente:
- scope: Ein Scope- Objekt
- Werte: Muss dieselbe Form und denselben Typ haben.
Optionale Attribute (siehe Attrs
):
- Achse: Dimension, entlang der gepackt werden soll. Negative Werte werden umbrochen, sodass der gültige Bereich
[-(R+1), R+1)
.
Kehrt zurück:
-
Output
: Der gepackte Tensor.
Konstruktoren und Destruktoren | |
---|---|
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values) | |
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, const Stack::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Axis (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: Stack :: Attrs | Optionale Attributsetzer für Stack . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
Stapel
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values )
Stapel
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values, const Stack::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Achse
Attrs Axis( int64 x )