Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::Equal

#include <math_ops.h>

Возвращает логическое значение (x == y) поэлементно.

Краткое описание

ПРИМЕЧАНИЕ: Equal поддерживает широковещательную передачу. Подробнее о широковещательной передаче здесь

x = tf.constant([2, 4])
y = tf.constant(2)
tf.math.equal(x, y) ==> array([True, False])
x = tf.constant([2, 4])
y = tf.constant([2, 4])
tf.math.equal(x, y) ==> array([True,  True])

Аргументы:

  • scope: Объект Scope

Возвращает:

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

Необязательные устанавливатели атрибутов для Equal.

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

operation

Operation operation

z

::tensorflow::Output z

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

Equal

 Equal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y
)

Equal

 Equal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y,
  const Equal::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

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

IncompatibleShapeError

Attrs IncompatibleShapeError(
  bool x
)

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

Spec-Zone.ru

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