mindspore.ops.Identity

class mindspore.ops.Identity[source]
prim = ops.Identity()
out = prim(input_x)

is equivalent to

ops.deepcopy(input_x)

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