optax icon indicating copy to clipboard operation
optax copied to clipboard

Add `axis` and `where` arguments to loss functions

Open carlosgmartin opened this issue 10 months ago • 2 comments

Feature request: Add the following arguments:

  • axis: reduction axis (default -1)
  • where: reduction mask (default None)

to the following loss functions:

I can submit a PR for this.

carlosgmartin avatar Apr 04 '24 01:04 carlosgmartin

Hello @carlosgmartin,

Yes, that would be great. Thanks for catching this!

vroulet avatar Apr 04 '24 17:04 vroulet

Great. Once #898 is merged I'll put together a PR.

carlosgmartin avatar Apr 05 '24 03:04 carlosgmartin