【pytorch】【解决】RuntimeError: Integer division of tensors using div or / is no longer supported
x = torch.tensor([1,2,3])n = 10print(x/n)运行结果:Traceback (most recent call last): File "/home/yjys/PycharmProjects/TEST/validation/test/torch_test.py", line 22, in <module> print(x/n)RuntimeError: Integer division of tensors using div or /