mindspore.ops.Neg

class mindspore.ops.Neg[源代码]
prim = ops.Neg()
out = prim(input)

等价于

ops.neg(input)

更多详情请查看: mindspore.ops.neg()