Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::Sign

#include <math_ops.h>

Возвращает элементную индикацию знака числа.

Summary

y = sign(x) = -1 если x < 0; 0, если x == 0; 1, если x > 0.

Для комплексных чисел, y = sign(x) = x / |x| если x != 0, в противном случае y = 0.

Пример использования: tf.math.sign([0., 2., -3.])

Аргументы:

  • scope: Объект Scope

Возвращает:

  • Output: Tensor y.
Конструкторы и деструкторы
Sign(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

Публичные функции

Sign

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

node

::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/r2.3/api_docs/cc/class/tensorflow/ops/sign

Spec-Zone.ru

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