title: How to convert Pytorch model parameters to long datatype?
body: <p>I was able to convert pytorch model parameters to float or double but not to long.</p>
  
  <pre><code>model = model.long() 
  </code></pre>
  
  <p>gives error, while</p>
  
  <pre><code>model = model.float() 
  </code></pre>
  
  <p>runs.</p>
  
  <p>The error I get is:</p>
  
  <blockquote>
  <pre><code>'Net' object has no attribute 'long'
  </code></pre>
  </blockquote>