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 :
While those arguments work well :
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.