equal

dragon.math.equal(
  inputs,
  **kwargs
)[source]

Compute the element-wise equal comparison.

\[\text{out} = (a == b) \]

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 tensor \(a\) and \(b\).
Returns:

dragon.Tensor – The output tensor.