tensorflow :: ops :: Tumpukan

#include <array_ops.h>

Mengemas daftar tensor peringkat N R menjadi satu tensor peringkat- (R+1) .

Ringkasan

Mengemas values tensor N ke dalam tensor dengan peringkat satu lebih tinggi dari setiap values tensor, dengan mengemasnya di sepanjang dimensi axis . Diberikan daftar tensor bentuk (A, B, C) ;

jika axis == 0 maka tensor output akan berbentuk (N, A, B, C) . jika axis == 1 maka tensor output akan berbentuk (A, N, B, C) . Dll

Sebagai contoh:

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

Ini kebalikan dari unpack .

Argumen:

  • scope: Objek Scope
  • nilai: Bentuk dan jenisnya harus sama.

Atribut opsional (lihat Attrs ):

  • sumbu: Dimensi yang akan dikemas. Nilai negatif membungkus, sehingga kisaran yang valid adalah [-(R+1), R+1) .

Pengembalian:

  • Output : Tensor yang dikemas.

Pembuat dan Penghancur

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

Atribut publik

operation
output

Fungsi publik

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

Fungsi statis publik

Axis (int64 x)

Structs

tensorflow :: ops :: Stack :: Attrs

Penyetel atribut opsional untuk Stack .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Tumpukan

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

Tumpukan

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

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Sumbu

Attrs Axis(
  int64 x
)