Problems encountered pytorch

1.

RuntimeError: Expected object of scalar type Long but got scalar type Float for argument # 2 'mat2' (scalar type object desired length, but to obtain a scalar type float)

y= torch.matmul(x,w)

Solve: y = torch.matmul (x.float (), w.float ())

2.visdom module

https://blog.csdn.net/tanmx219/article/details/87800752

 

Guess you like

Origin www.cnblogs.com/cs-zzc/p/11450900.html