Replace dimension i with a new dimension size.
The new changed TensorShape
The target dimension to change.
The new dimension size.