Size ([2, 1, 4]) # 在A的第1个维度之前前插入新的维度 In [23]: B = A.unsqueeze(0) In [24]: B.shape Out[24]: torch.Size([1, 2, 1, 4]) # 在A的第3 ...
確定! 回上一頁