tensorflow::ops::Equal
#include <math_ops.h>
Возвращает значение истинности (x == y) поэлементно.
Summary
ПРИМЕЧАНИЕ: 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 | |
z | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
IncompatibleShapeError(bool x) | |
| Структуры | |
|---|---|
| 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 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/equal