Hi everyone,

So I’m working on my assignement for the first week and I was trying to use the dtype argument with torch.randn. And I can’t figure out if I do something wrong or if I’m missing something as usually errors are Syntax one.

So i tried to type:

I also tried to type the dtype argument as follow with the same results :

- dtype=torch.int
- dtype=torch.intTensor

While those arguments work well :

- dtype=torch.float
- dtype=torch.double

So I was wondering if the error is normal (i.e. torch.randn is intended to produce only float numbers) or if I type something wrong and torch.randn is actually capable of producing a tensor filled with integers.

Thanks