identity

dragon.identity(
  inputs,
  **kwargs
)[source]

Return a tensor copied from the input.

Examples:

# Copy ``x`` to ``y``
x = dragon.zeros(shape=(2, 3))
y = dragon.identity(x)

# ``x`` != ``y``
x += 1
print(x)
print(y)
Parameters:
Returns:

dragon.Tensor – The output tensor.