我使用 PyTorch 得到尺寸为 (210,2) 的张量。我想把它转换成(15,14,2)。 有人知道怎么做吗?先谢谢你了
x = torch.randn(210, 2) x = x.reshape(15,14,2)