RuntimeError: Expected object of type torch.DoubleTensor but found type torch.FloatTensor for argument #2 'weight' : <p>My input tensor is torch.DoubleTensor type. But I got the RuntimeError below:</p>

<pre><code>RuntimeError: Expected object of type torch.DoubleTensor but found type torch.FloatTensor for argument #2 'weight'
</code></pre>

<p>I didn't specify the type of the weight explicitly(i.e. I did not init my weight by myself. The weight is created by pytorch). What will influence the type of weight in the forward process?</p>

<p>Thanks a lot!! </p>
