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

#include <math_ops.h>

ปัดเศษค่าของเทนเซอร์ให้เป็นจำนวนเต็มที่ใกล้ที่สุด โดยปัดเศษทีละองค์ประกอบ

สรุป

ปัดเศษครึ่งให้เป็นจำนวนเต็ม หรือที่เรียกว่าการปัดเศษแบบธนาคาร หากต้องการปัดเศษตามโหมดการปัดเศษของระบบปัจจุบัน ให้ใช้ std::cint

ข้อโต้แย้ง:

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

  • Output : เทนเซอร์ y

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

Round (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

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

operation
y

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

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

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

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

Operation operation

y

::tensorflow::Output y

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

กลม

 Round(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const