RuntimeError: Input type (c10::Half) and bias type (float) should be the same #20261
              
                Unanswered
              
          
                  
                    
                      morestart
                    
                  
                
                  asked this question in
                Lightning Trainer API: Trainer, LightningModule, LightningDataModule
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I trained a model using 16-mixed precision, and then tried to load and fine-tune the model using the following code:
However, the following error occurred:
RuntimeError: Input type (c10::Half) and bias type (float) should be the sameHow can I correctly load the model in PyTorch Lightning?
Beta Was this translation helpful? Give feedback.
All reactions