greater

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

Compute the element-wise greater comparison.

\[\text{out} = (\text{input1} > \text{input2}) \]

Examples:

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

dragon.Tensor The output tensor.