Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move stochastic gradient estimation functions to separate monte_carlo subpackage. #589

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

copybara-service[bot]
Copy link

Move stochastic gradient estimation functions to separate monte_carlo subpackage.

E.g. this means that instead of:

import optax
optax.score_function_jacobians(...)

You should now use:

from optax import monte_carlo`
monte_carlo.score_function_jacobians

This is part of a broader effort to restructure the current fully flat API surface, since optax has outgrown the flat structure due to broader scope and complexity.

@copybara-service copybara-service bot force-pushed the test_570042042 branch 9 times, most recently from b14648a to 17b180f Compare October 4, 2023 10:00
… subpackage.

E.g. this means that instead of:

```
import optax
optax.score_function_jacobians(...)
```

You should now use:

```
from optax import monte_carlo`
monte_carlo.score_function_jacobians
```

This is part of a broader effort to restructure the current fully flat API surface, since optax has outgrown the flat structure due to broader scope and complexity.

PiperOrigin-RevId: 570641433
@copybara-service copybara-service bot merged commit a84668b into master Oct 4, 2023
@copybara-service copybara-service bot deleted the test_570042042 branch October 4, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant