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

#include <math_ops.h>

คำนวณค่า "ออร์เชิงตรรกะ" ขององค์ประกอบต่างๆ ในมิติที่แตกต่างกันของเทนเซอร์

สรุป

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

ข้อโต้แย้ง:

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

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

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

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

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

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

  • ลดจำนวนใดๆ

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

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

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

operation
output

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

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

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

KeepDims (bool x)

โครงสร้าง

tensorflow::ops::Any::Attrs

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

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

ใดๆ

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

ใดๆ

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

คีปดิมส์

Attrs KeepDims(
  bool x
)