1.
RuntimeError: Expected object of scalar type Long but got scalar type Float for argument #2 'mat2'(期望对象为标量类型长,但得到标量类型浮点数)
y= torch.matmul(x,w)
解决:y = torch.matmul(x.float(), w.float())
2.visdom模块
1.
y= torch.matmul(x,w)
解决:y = torch.matmul(x.float(), w.float())
2.visdom模块