تدفق التوتر:: العمليات:: رينت

#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.]

الحجج:

عائدات:

البنائين والمدمرين

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