同时我们也可以使用下面的方法将pytorch tensor 转换为numpy ndarray ... x = torch.randn(3, 4, 5) print(x.shape) # 使用permute和transpose进行维度交换 x ...
確定! 回上一頁