identity¶
dragon.
identity
(
inputs,
**kwargs
)[source]¶Return a tensor copied from the input.
Examples:
Examples:
# Copy ``x`` to ``y`` x = dragon.zeros(shape=(2, 3)) y = dragon.identity(x) # ``x`` != ``y`` x += 1 print(x) print(y)
- Parameters:
- inputs (dragon.Tensor) – The input tensor.
- Returns:
dragon.Tensor – The output tensor.