not_equal¶
dragon.math.
not_equal
(
inputs,
**kwargs
)[source]¶Compute the element-wise not-equal comparison.
\[\text{out} = (\text{input1} \neq \text{input2}) \]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 input1 and input2 tensor.
- Returns:
dragon.Tensor – The output tensor.