mindspore.ops.Identity

class mindspore.ops.Identity[源代码]
prim = ops.Identity()
out = prim(input_x)

等价于

ops.deepcopy(input_x)

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