Solved by albanD in post #2 
              
              
                Hi, 
All module’s parameters are created with the default tensor type torch.Tensor. 
If you want to change this, you can either change the default tensor type with torch.set_default_tensor_type() or by changing the type of the layer afterwards with your_layer.double() to convert to double or your_la…