Hi All,
I saw so many questions/answers here about custom loss function. However, didn’t find what I’m looking for.
my simple question is: From Pytorch’s perspective what is the best/clean way to write your own loss function- class-based or function-based?