tensorflow:: ops:: Stack
#include <array_ops.h> Pakuje listę tensorów rzędu N R w jeden tensor rzędu (R+1) .
Streszczenie
Pakuje N tensorów w values do tensora o randze o jeden wyższej niż każdy tensor w values , pakując je wzdłuż wymiaru axis . Podano listę tensorów o kształcie (A, B, C) ;
Jeśli axis == 0 , to tensor output będzie miał kształt (N, A, B, C) . Jeśli axis == 1 , to tensor output będzie miał kształt (A, N, B, C) . Itp.
Na przykład:
# '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]]
This is the opposite of unpack .
Argumenty:
- zakres: obiekt zakresu
- values: Must be of same shape and type.
Atrybuty opcjonalne (patrz Attrs ):
- Oś: Wymiar, wzdłuż którego należy pakować. Wartości ujemne są zawijane, więc prawidłowy zakres to
[-(R+1), R+1).
Zwroty:
-
Output: The packed tensor.
Konstruktory i destruktory | |
|---|---|
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values) | |
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, const Stack::Attrs & attrs) |
Atrybuty publiczne | |
|---|---|
operation | |
output | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Publiczne funkcje statyczne | |
|---|---|
Axis (int64 x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: Stack:: Attrs | Optional attribute setters for Stack . |
Atrybuty publiczne
działanie
Operation operation
wyjście
::tensorflow::Output output
Funkcje publiczne
Stos
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values )
Stos
Stack( const ::tensorflow::Scope & scope, ::tensorflow::InputList values, const Stack::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Oś
Attrs Axis( int64 x )