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

OverflowError in _disable_insert_blocking when using samples_per_insert=None #286

Open
KaleabTessera opened this issue Feb 7, 2023 · 0 comments

Comments

@KaleabTessera
Copy link

When using samples_per_insert=None, this line returns the following error:

 File "/home/kaleab/anaconda3/envs/dyn-net/lib/python3.9/site-packages/acme/jax/experiments/run_experiment.py", line 75, in run_experiment
    replay_tables, rate_limiters_max_diff = _disable_insert_blocking(replay_tables)
  File "/home/kaleab/anaconda3/envs/dyn-net/lib/python3.9/site-packages/acme/jax/experiments/run_experiment.py", line 296, in _disable_insert_blocking
    max(1, int((rate_limiter_info.max_diff - rate_limiter_info.min_diff) / 2))
OverflowError: cannot convert float infinity to integer

,since rate_limiter_info.max_diff and rate_limiter_info.min_diff are inf, therefore (rate_limiter_info.max_diff - rate_limiter_info.min_diff) / 2) is inf as well.

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