copy

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

Copy the input.

Examples:

# Copy ``x`` to ``y``
x = dragon.ones(shape=(2, 3))
y = dragon.zeros(shape=(2, 4))
dragon.copy([x, y])

# Copy to a new tensor from ``x``
y = dragon.copy(x)
Parameters:
Returns:

dragon.Tensor – The output tensor.