Created
          January 22, 2020 01:43 
        
      - 
      
- 
        Save vsay01/00e3a175fc02ca203119f3259a5728fa to your computer and use it in GitHub Desktop. 
    check if GPU available
  
        
  
    
      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
    
  
  
    
  | # check if CUDA is available | |
| use_cuda = torch.cuda.is_available() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment