Loss Functions
The nn loss classes are the user-facing wrappers over the tensor-level tensor*loss functions. They inherit from LossFunction, hold a Reduction mode, and expose a single forward() method. They also work as callables via operator().
nn-level loss function classes — thin wrappers over the tensor-level loss functions, ready to drop into a training loop.
The nn loss classes are the user-facing wrappers over the tensor-level tensor*loss functions. They inherit from LossFunction, hold a Reduction mode, and expose a single forward() method. They also work as callables via operator().