tensorflow:: ops:: Rint

#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

y

::tensorflow::Output y

الوظائف العامة

طباعة

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const