Returns a tensor with all specified dimensions of input of size 1 removed.
For example, if input is of shape:
(A×1×B×C×1×D) then the input.squeeze()
will be of shape: (A×B×C×D).
When dim is given, a squeeze operation is done only in the given
dimension(s). If input is of shape: (A×1×B),
squeeze(input,0) leaves the tensor unchanged, but squeeze(input,1)
will squeeze the tensor to the shape (A×B).