Compares a numeric value, matrix or tensor a to another numeric value, matrix or tensor b and outputs the result as a Boolean value.
- a numeric (scalar) value, matrix or tensor
- a numeric (scalar) value, matrix or tensor.
If both a and b are non-scalar (matrix or tensor), their dimensions must be the same.
- If both inputs are scalar, the output is a Boolean value. If either of the inputs is non-scalar, the output is either a Boolean matrix or a Boolean tensor. If one input is scalar and the other input is non-scalar, the output is non-scalar and the values are determined by comparing each element of the non-scalar input to the scalar input.