You can start with the example regression code here:

  
      
      GitHub
  
  
    

pytorch/examples 314

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.


  
  
    
    
  
  


Once you get official example to work, then start modifying it for your project.  It will be hard to get someone else to debug your program.