mindspore.ops.Abs

class mindspore.ops.Abs[source]
prim = ops.Abs()
out = prim(input)

is equivalent to

ops.abs(input)

Refer to mindspore.ops.abs() for more details.