How to implement gradient penalty in PyTorch

Ajay and I discussed that a bit a while ago and there is a link to a blog post and Jupyter notebook doing the toy examples from the improved training article in pytorch:

Best regards

Thomas

2 Likes