Hello I am trying to implement custom loss function which has simillar architecture as huber loss.
That is, combination of multiple function.
In this case, I’ve heard that I should not rely on pytorch’s auto calculation and make a new backward pass. Though I cannot find any example code and cannot catch how I should return gradient tensor in function.
any help…?