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?

https://colab.research.google.com/drive/1YvpLAgyUT2hBg_qkIOyJpVx0xwu65wXf#scrollTo=yjuV2kRoKgxV

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