Custom Loss Function with Backward Method

Checkout this thread: Difference between apply an call for an autograd function