#include <math_ops.h>
Returns the truth value of (x == y) element-wise.
NOTE: Equal
supports broadcasting. More about broadcasting here
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])
Arguments:
Returns:
Output
: The z tensor. Constructors and Destructors | |
---|---|
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) |
Public attributes | |
---|---|
operation | |
z |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
IncompatibleShapeError(bool x) |
Structs | |
---|---|
tensorflow::ops::Equal::Attrs | Optional attribute setters for Equal. |
Operation operation
::tensorflow::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 )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
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