Problem with '(' token in x = torch.rand(5, 3)

Viewed 17

I was trying to install pytorch and verify the installation using a code: import torch x = torch.rand(5, 3) print(x) but I keep getting x=torch.rand(5,3) print(x) -bash: syntax error near unexpected token `('
as an error.

0 Answers
Related