Replace the last dimension with a new dimension size.
The new changed TensorShape
New size for the last dimensions