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

Resolvers don't support caching #41

Open
victor-paltz opened this issue Apr 11, 2023 · 0 comments
Open

Resolvers don't support caching #41

victor-paltz opened this issue Apr 11, 2023 · 0 comments

Comments

@victor-paltz
Copy link

In OmeaConf it is possible to cache the resolver results (by default a custom resolver is called on every access).
Caching is required when using random functions to ensure the same value is always returned (ex: for a random search).
This feature is not available in fromconfig.

OmegaConf doc: https://omegaconf.readthedocs.io/en/2.3_branch/custom_resolvers.html
Code to change:

OmegaConf.register_new_resolver(name, resolver)

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

No branches or pull requests

1 participant