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.