Quiz 11 Question 19 of 20

When implementing a custom loss function as a class in PyTorch, which base class should it inherit from to integrate properly with the training loop?

Select an answer to reveal the explanation.

Motivation