เทนเซอร์โฟลว์:: ปฏิบัติการ:: ริน

#include <math_ops.h>

ส่งกลับจำนวนเต็มตามองค์ประกอบที่ใกล้กับ x มากที่สุด

สรุป

หากผลลัพธ์อยู่กึ่งกลางระหว่างค่าที่แทนค่าได้สองค่า ค่าที่แทนค่าได้คู่จะถูกเลือก ตัวอย่างเช่น:

rint(-1.5) ==> -2.0
rint(0.5000001) ==> 1.0
rint([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) ==> [-2., -2., -0., 0., 2., 2., 2.]

ข้อโต้แย้ง:

ผลตอบแทน:

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

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

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

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

operation
y

งานสาธารณะ

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

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

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

Operation operation

::tensorflow::Output y

งานสาธารณะ

ริน

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

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const