@Operator(group="math") public final class Equal extends PrimitiveOp implements Operand<Boolean>
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])
Modifier and Type | Class and Description |
---|---|
static class |
Equal.Options
Optional attributes for
Equal |
operation
Modifier and Type | Method and Description |
---|---|
Output<Boolean> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> Equal |
create(Scope scope,
Operand<T> x,
Operand<T> y,
Equal.Options... options)
Factory method to create a class wrapping a new Equal operation.
|
static Equal.Options |
incompatibleShapeError(Boolean incompatibleShapeError) |
Output<Boolean> |
z() |
equals, hashCode, op, toString
public static <T> Equal create(Scope scope, Operand<T> x, Operand<T> y, Equal.Options... options)
scope
- current scopex
- y
- options
- carries optional attributes valuespublic static Equal.Options incompatibleShapeError(Boolean incompatibleShapeError)
incompatibleShapeError
- public Output<Boolean> asOutput()
Operand
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.
asOutput
in interface Operand<Boolean>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.