เทนเซอร์โฟลว์:: ออปส์:: รินต์
#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
y
::tensorflow::Output y
หน้าที่สาธารณะ
รินต์
Rint( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const