Solved by Amrit_Das in post #2 
              
              
                @MKy I have never seen this error but a fix would be to call  .double()  on your model (or  .float()  on the input). I would suggest you to add ‘.float()’ to your input and see [Screenshot%20from%202018-12-17%2014-34-04] 
Try writting 
q = torch.arange(0, 20).storage().float()
x = torch.empty(0).set…