Do you have your code in .py format (instead the jupyter notebook format)?
Kripa Ghosh

If you have multiple questions, please ask them at once so that its easy to read. If you have code specific questions , ask in the github page. 
There is no .py file. 
the notebook is meant as a starting point for pytorch users to use unconventional loss functions.

Like what you read? Give Harshvardhan Gupta a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.