Spec-Zone.ru › TensorFlow C++ 1.15

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

Аргументы:

  • scope: Объект Scope

Возвращает:

  • Output: Тензор y.
Конструкторы и деструкторы
Rint(const ::tensorflow::Scope & scope, ::tensorflow::Input x)
Общедоступные атрибуты
operation
Operation
y
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Общедоступные атрибуты

operation

Operation operation

y

::tensorflow::Output y

Общедоступные функции

Rint

 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 

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/rint

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API