Created
          January 22, 2020 02:03 
        
      - 
      
- 
        Save vsay01/c78e5c86bab4b3911bf5e88ef1a5a680 to your computer and use it in GitHub Desktop. 
    Define criterion and loss function
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #define loss function and optimizer | |
| criterion = nn.NLLLoss() | |
| optimizer = optim.Adam(model.parameters(), lr=0.001) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment