Equal

Stay organized with collections Save and categorize content based on your preferences.
public final class Equal

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

NOTE: `math.Equal` supports broadcasting. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

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])
 

Nested Classes

class Equal.Options Optional attributes for Equal  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TBool>
asOutput()
Returns the symbolic handle of the tensor.
static <T extends TType> Equal
create(Scope scope, Operand<T> x, Operand<T> y, Options... options)
Factory method to create a class wrapping a new Equal operation.
static Equal.Options
incompatibleShapeError(Boolean incompatibleShapeError)
Output<TBool>
z()

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "Equal"

Public Methods

public Output<TBool> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static Equal create (Scope scope, Operand<T> x, Operand<T> y, Options... options)

Factory method to create a class wrapping a new Equal operation.

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of Equal

public static Equal.Options incompatibleShapeError (Boolean incompatibleShapeError)

public Output<TBool> z ()