Changes the CV classes to use by default a loss function object.
It is still possible to assign loss_fn to a (lambda) function, although I had to override __setattr__ to work around some weird PyTorch magic (hopefully the comments I left in the code makes it clear).
Description
Changes the CV classes to use by default a loss function object.
It is still possible to assign
loss_fn
to a (lambda) function, although I had to override__setattr__
to work around some weird PyTorch magic (hopefully the comments I left in the code makes it clear).Status