print(f.shape). 输出结果:. 2. torch.Size([2, 3]). torch.Size([2, 3]). dim=0的标量. 维度为0的Tensor为标量,标量一般用在Loss这种地方。
確定! 回上一頁