title: RuntimeError: Expected object of scalar type Double but got scalar type Float for argument #2
body: <p>I have a <code>PyTorch</code> LSTM model and my <code>forward</code> function looks like:</p>
  
  <pre><code>    def forward(self, x, hidden):
          print('in forward', x.dtype, hidden[0].dtype, hidden[1].dtype)
          lstm_out, hidden = self.lstm(x, hidden)
          return lstm_out, hidden
  </code></pre>
  
  <p>All of the <code>print</code> statements show <code>torch.float64</code>, which I believe is a double. So then why am I getting this issue?</p>
  
  <p>I've cast to <code>double</code> in all of the relevant places already.</p>