Size ([3, 2, 4, 1, 2, 1]) print(x.shape) y = torch.squeeze(x) # Returns a tensor with all the dimensions of input of size 1 removed.
確定! 回上一頁