input = torch.randn(3, 5, requires_grad=True)

Traceback (most recent call last):
File “”, line 1, in 
TypeError: torch.randn 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)
(torch.Generator generator, int … size)
didn’t match because some of the keywords were incorrect: requires_grad
(torch.Generator generator, torch.Size size)

Getting above errors for MSE Loss and cross entropy loss. Please suggest the way out