replaceLast
Replace the last dimension with a new dimension size.
Return
The new changed TensorShape
Parameters
dim
New size for the last dimensions
Replace the last dimension with a new dimension size.
The new changed TensorShape
New size for the last dimensions