mindspore.ops.Neg

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

is equivalent to

ops.neg(input)

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