not_equal

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

Compute the element-wise not-equal comparison.

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

Examples:

a = dragon.constant(2)
b = dragon.constant(3)
c = dragon.constant(3)
print(dragon.math.not_equal([a, b]))
print(dragon.math.not_equal([b, c]))
Parameters:
  • inputs (Sequence[dragon.Tensor]) – The tensor \(a\) and \(b\).
Returns:

dragon.Tensor – The output tensor.