Hi,
I am trying an example adapted from here:![nn02|478x500]

  
      
      GitHub
  
  
    

adamlerer/pytorch-examples 111

Simple examples to introduce PyTorch. Contribute to adamlerer/pytorch-examples development by creating an account on GitHub.


  
  
    
    
  
  


I copy pasted the example and this exception is thrown:

nn02.png843×881 144 KB

Has the API changed?
Thanks,