equal¶
dragon.math.
equal
(
inputs,
**kwargs
)[source]¶Compute the element-wise equal comparison.
\[\text{out} = (\text{input1} == \text{input2}) \]Examples:
a = dragon.constant(2) b = dragon.constant(3) c = dragon.constant(3) print(dragon.math.equal([a, b])) print(dragon.math.equal([b, c]))
- Parameters:
- inputs (Sequence[dragon.Tensor]) – The input1 and input2 tensor.
- Returns:
dragon.Tensor – The output tensor.