Closed
Description
Hi, I thought it could be nice if there were a few more losses ready to go in mlx. To start with I was thinking:
- L1_loss (L1 loss)
- mse_loss (mean squared error)
Maybe also:
- nll_loss (negative log likelihood loss)
- kl_div_loss (KL-divergence loss)
Think this should pretty straightforward to do? Simply a case of adding them to python/mlx/nn/losses.py
Any thoughts? And I am happy to work on this issue.