You get that error because your torch tensors (x1 and x2) are not a single element tensor. t = torch.tensor([10, 20]) print(t.item()) # This ...
確定! 回上一頁