在pytorch中, V.size() 给出了一个大小对象,但如何将其转换为整数? 最佳答案. 对于PyTorch v1.0 和可能更高版本: >>> import torch >>> var = torch.tensor([[1,0], ...
確定! 回上一頁