Problem with creating tensor in google colab

when I do tensor(-3., 2) in google colab. I get an error tensor module not defined. Then I tried torch.tensor([-3.,2]) which sometimes works and sometimes doesn’t

Can solve check my notebook & let me know the exact issue?

Hi :wave:t3:,

Could it be because you are using fastai 0.7 and not 1.X ?

1 Like

I have the same issue here?

use torch.Tensor([3.,2]), worked