sponge.function.identity
- sponge.function.identity(x: Tensor)[source]
Returns a Tensor with the same shape and contents as input.
- Parameters
x (Tensor) – The shape of tensor is \((x_1, x_2, ..., x_R)\). The data type is Number.
- Returns
Tensor, the shape of tensor and the data type are the same as x, \((x_1, x_2, ..., x_R)\).
- Supported Platforms:
Ascend
GPU
CPU