tensorflow::ops::AvgPool

#include <nn_ops.h>

ทำการรวมค่าเฉลี่ยของข้อมูลป้อนเข้า

สรุป

แต่ละค่าใน output คือค่าเฉลี่ยของหน้าต่างขนาด ksize ที่สอดคล้องกันใน value

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ค่า: 4 มิติที่มีรูปร่าง [batch, height, width, channels]
  • ksize: ขนาดของหน้าต่างเลื่อนสำหรับแต่ละมิติของ value
  • ระยะก้าว: ระยะก้าวของหน้าต่างเลื่อนสำหรับแต่ละมิติของ value
  • การเติมช่องว่าง: ประเภทของอัลกอริทึมการเติมช่องว่างที่จะใช้

คุณลักษณะเสริม (ดูที่ Attrs ):

  • data_format: ระบุรูปแบบข้อมูลของข้อมูลขาเข้าและขาออก โดยค่าเริ่มต้นจะใช้รูปแบบ "NHWC" ซึ่งข้อมูลจะถูกจัดเก็บในลำดับ: [batch, in_height, in_width, in_channels] หรืออาจใช้รูปแบบ "NCHW" ซึ่งลำดับการจัดเก็บข้อมูลจะเป็น: [batch, in_channels, in_height, in_width]

การส่งคืนสินค้า:

  • Output : เทนเซอร์ผลลัพธ์เฉลี่ยที่รวมกันแล้ว

ตัวสร้างและตัวทำลาย

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)

คุณลักษณะสาธารณะ

operation
output

หน้าที่สาธารณะ

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

ฟังก์ชันคงที่สาธารณะ

DataFormat (StringPiece x)

โครงสร้าง

tensorflow::ops::AvgPool::Attrs

ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ AvgPool ( ไม่จำเป็น)

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

เอาต์พุต

::tensorflow::Output output

หน้าที่สาธารณะ

อัฟก์พูล

 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
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

รูปแบบข้อมูล

Attrs DataFormat(
  StringPiece x
)