tensorflow::ops::Stack

#include <array_ops.h>

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

Riepilogo

Impacchetta gli N tensori in values in un tensore con rango superiore di uno rispetto a ciascun tensore in values , impacchettandoli lungo la dimensione axis . Dato un elenco 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) . Ecc.

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 .

Argomentazioni:

  • ambito: un oggetto Scope
  • valori: Devono essere della stessa forma e dello stesso tipo.

Attributi opzionali (vedere Attrs ):

  • asse: dimensione lungo la quale impacchettare. I valori negativi vanno a capo, quindi l'intervallo valido è [-(R+1), R+1) .

Resi:

  • Output : Il tensore impacchettato.

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 statiche pubbliche

Axis (int64 x)

Strutture

tensorflow::ops::Stack::Attrs

Impostatori di attributi opzionali 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::tensoreflusso::output

 operator::tensorflow::Output() const 

Funzioni statiche pubbliche

Asse

Attrs Axis(
  int64 x
)