Reshape a tensor to a given target shape without changing its data.
Input:
x: A tensor shape: A list of integers representing the target shape Output: A tensor with the same data but reshaped to the target dimensions.
API Reference:
x.reshape(shape) or torch.reshape(x, shape) jnp.reshape(x, shape) or x.reshape(shape)