optax icon indicating copy to clipboard operation
optax copied to clipboard

Add ACProp optimizer.

Open carlosgmartin opened this issue 9 months ago • 7 comments

#965

carlosgmartin avatar May 15 '24 22:05 carlosgmartin

@fabianp @vroulet This PR is getting the same error as https://github.com/google-deepmind/optax/pull/962. Looks like there's a problem with optax/monte_carlo/control_variates_test.py > ConsistencyWithStandardEstimators.testWeightedLinearFunction > _score_function_jacobians & control_delta_method.

carlosgmartin avatar May 23 '24 04:05 carlosgmartin

Yep, we know. This bug does not show up internally, neither on a mac, just on linux (which I don't have). It's related to the new jax release. We are working on it.

vroulet avatar May 23 '24 14:05 vroulet

@carlosgmartin : we could also use some help if you have cycles to look into this ...

fabianp avatar May 23 '24 14:05 fabianp

It's been fixed in #972. Should be merged tomorrow.

vroulet avatar May 23 '24 20:05 vroulet

@vroulet Done.

carlosgmartin avatar May 24 '24 22:05 carlosgmartin

Thanks! Can you add it to the list of common tests of the contrib folder?

vroulet avatar May 24 '24 23:05 vroulet

@vroulet Done.

carlosgmartin avatar May 25 '24 02:05 carlosgmartin

@vroulet Did you mean adding scale_by_acprop to docs/api/contrib.rst in your first bullet point?

carlosgmartin avatar May 27 '24 15:05 carlosgmartin

Yes. People may want to combine this scale function with e.g. a clipping, so the documentation helps. This is just a nitpick to finalize the contrib.

vroulet avatar May 27 '24 16:05 vroulet

Perfect, I'll take it from here (I need to make some internal changes to add this optimizer to our builds). Thanks again

vroulet avatar May 27 '24 16:05 vroulet

@vroulet Should I close this now?

carlosgmartin avatar Jun 09 '24 22:06 carlosgmartin

It should have been closed automatically but yes, let me close it

vroulet avatar Jun 09 '24 22:06 vroulet