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

#include <math_ops.h>

คำนวณผลคูณขององค์ประกอบต่างๆ ในมิติของเทนเซอร์

สรุป

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

ข้อโต้แย้ง:

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

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

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

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

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

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

  • ลดปริมาณการผลิต

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

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

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

operation
output

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

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

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

KeepDims (bool x)

โครงสร้าง

tensorflow:: ops:: Prod:: Attrs

ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ Prod

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

แยง

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

แยง

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

คีปดิมส์

Attrs KeepDims(
  bool x
)