opacus icon indicating copy to clipboard operation
opacus copied to clipboard

pytorch running error

Open ChenPen1 opened this issue 6 years ago • 2 comments

Hello,when I used "pyhon mnist.py --device=cpu -n=15 --lr=.25 --sigma=1.3 -c=1.5 -b=250", there are some prolem. as follows:

TypeError: normal() received an invalid combination of arguments - got (int, Tensor, torch.Size, device=torch.device, generator=torch._C.Generator), but expected one of:

  • (Tensor mean, Tensor std, torch.Generator generator, Tensor out)
  • (Tensor mean, float std, torch.Generator generator, Tensor out)
  • (float mean, Tensor std, torch.Generator generator, Tensor out) Thanks for your answer!

ChenPen1 avatar Aug 31 '20 02:08 ChenPen1

Hello @ChenPen1 , could you paste the entire stack trace here? I was not able to reproduce this.

karthikprasad avatar Aug 31 '20 17:08 karthikprasad

Thank you for your answer. After reinstalling Pytorch, the problem was solved.

ChenPen1 avatar Sep 01 '20 05:09 ChenPen1