How to convert Pytorch model parameters to long datatype?
I was able to convert pytorch model parameters to float or double but not to long.

model = model.long() 


gives error, while

model = model.float() 


runs.

The error I get is:


'Net' object has no attribute 'long'



Most nn modules do not support long (integer) operations, e.g., convolutions, linear layer etc. Therefore, you cannot "cast" a model to torch.long.
