tensoreflusso:: ops:: Pila

#include <array_ops.h>

Comprime un elenco di tensori di rango N R in un tensore di rango (R+1) .

Riepilogo

Impacchetta gli N tensori in values in un tensore con rango uno superiore a ciascun tensore in values , impacchettandoli lungo la dimensione axis . Data una lista di tensori di forma (A, B, C) ;

se axis == 0 allora il tensore output avrà la forma (N, A, B, C) . se axis == 1 allora il tensore output avrà la forma (A, N, B, C) . Eccetera.

Per esempio:

# '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]]

Questo è l'opposto di unpack .

Argomenti:

  • scope: un oggetto Scope
  • valori: deve essere della stessa forma e tipo.

Attributi facoltativi (vedi Attrs ):

  • asse: dimensione lungo la quale imballare. I valori negativi si ripetono, quindi l'intervallo valido è [-(R+1), R+1) .

Ritorna:

  • Output : il tensore impaccato.

Costruttori e distruttori

Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values)
Stack (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, const Stack::Attrs & attrs)

Attributi pubblici

operation
output

Funzioni pubbliche

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Funzioni pubbliche statiche

Axis (int64 x)

Strutture

tensorflow:: ops:: Stack:: Attrs

Setter di attributi facoltativi per Stack .

Attributi pubblici

operazione

Operation operation

produzione

::tensorflow::Output output

Funzioni pubbliche

Pila

 Stack(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList values
)

Pila

 Stack(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList values,
  const Stack::Attrs & attrs
)

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

Asse

Attrs Axis(
  int64 x
)