Hello, I am a beginner with PyTorch and just running some basic example code in my jupiter notebook. When I was trying to un the code:
import torch
a = torch.ones(2,2,requires_grad=True);
It reported the error that: TypeError: torch.ones received an invalid combination of arguments - got (int, int, requires_grad=bool), but expected one of:

(int … size)
didn’t match because some of the keywords were incorrect: requires_grad
(torch.Size size)

I know this is not supposed to happen and there might be some version related issue. I am using conda python 3 and installed the PyTorch following the page suggestion. Thanks in advance.