Closed nhansendev closed 10 months ago
Thanks for pointing this out. I've run the code without error on the current Nevergrad. I'll double check with other configurations in case a Pypi package number might have an impact.
In case someone reproduces the error with nevergrad >= 0.8.0, could you << conv env export >> so that I can see which package versions are responsible ? Thanks for pointing the issue, there were related bugs some time ago, I hope the current version fixes all bugs.
Everything runs smoothly at least in my environment and after the recent fixes. Thank for your work @Obliman and others who commented related issues, this helps a lot.
Steps to reproduce
Versions: Python 3.10.7 nevergrad 0.6.0
Using the code block below the following combinations produce either normal results, InjectionWarnings, or RuntimeErrors:
Replacing the return value of the _loss function with zero or another constant prevents the issues from appearing, though this is not a particularly useful method.
The messages accompanying the warnings and errors both mention the ask function being called out-of-order.
Observed Results
InjectionWarnings:
RuntimeError:
Expected Results
It runs without errors/warnings
Relevant Code