เทนเซอร์โฟลว์:: ออปส์:: มีน

#include <math_ops.h>

คำนวณค่าเฉลี่ยขององค์ประกอบในแต่ละมิติของเทนเซอร์

สรุป

ลด input ตามมิติที่ระบุใน axis เว้นแต่ว่า keep_dims เป็นจริง อันดับของเทนเซอร์จะลดลง 1 สำหรับแต่ละรายการใน axis หาก keep_dims เป็นจริง มิติที่ลดลงจะคงไว้โดยมีความยาว 1

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • อินพุต: เทนเซอร์ที่ต้องการลดขนาด
  • แกน: มิติที่จะลดขนาด ต้องอยู่ในช่วง [-rank(input), rank(input)) .

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

  • keep_dims: ถ้าเป็นจริง จะคงขนาดที่ลดลงโดยมีความยาว 1 ไว้

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

  • Output : เทนเซอร์ที่ลดรูปแล้ว

ชื่อเรียกอื่น:

  • ลดค่าเฉลี่ย

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

Mean (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis)
Mean (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis, const Mean::Attrs & attrs)

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

operation
output

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

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

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

KeepDims (bool x)

โครงสร้าง

tensorflow::ops::Mean::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ ค่าเฉลี่ย

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

หมายถึง

 Mean(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis
)

หมายถึง

 Mean(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis,
  const Mean::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

คีปดิมส์

Attrs KeepDims(
  bool x
)