tensorflow :: ops :: AvgPool

#include <nn_ops.h>

Melakukan penggabungan rata-rata pada input.

Ringkasan

Setiap entri dalam output adalah mean dari ukuran yang sesuai ksize jendela di value .

Argumen:

  • scope: Objek Scope
  • nilai: 4-D dengan bentuk [batch, height, width, channels] .
  • ksize: Ukuran jendela geser untuk setiap dimensi value .
  • langkah: Langkah jendela geser untuk setiap dimensi value .
  • padding: Jenis algoritma padding yang akan digunakan.

Atribut opsional (lihat Attrs ):

  • data_format: Menentukan format data dari data masukan dan keluaran. Dengan format default "NHWC", data disimpan dalam urutan: [batch, in_height, in_width, in_channels]. Alternatifnya, formatnya bisa "NCHW", urutan penyimpanan data: [batch, in_channels, in_height, in_width].

Pengembalian:

  • Output : Tensor keluaran gabungan rata-rata.

Pembangun dan Penghancur

AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding)
AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const AvgPool::Attrs & attrs)

Atribut publik

operation
output

Fungsi publik

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

Fungsi statis publik

DataFormat (StringPiece x)

Structs

tensorflow :: ops :: AvgPool :: Attrs

Penyetel atribut opsional untuk AvgPool .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

AvgPool

 AvgPool(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

AvgPool

 AvgPool(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const AvgPool::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Format data

Attrs DataFormat(
  StringPiece x
)