tensorflow::ops::Equal

#include <math_ops.h>

Returns the truth value of (x == y) element-wise.

Summary

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:

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.

Public attributes

operation

Operation operation

z

::tensorflow::Output z

Public functions

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 

Public static functions

IncompatibleShapeError

Attrs IncompatibleShapeError(
  bool x
)