We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following produces a memory leak
# leak.py from procgen.env import ProcgenGym3Env import numpy as np n_envs = 100_000 timesteps = 10 for _ in range(n_miners): env = ProcgenGym3Env(1, "miner") for t in range(timesteps): env.act(np.array([5])) env.observe() env.get_info()
One can see this leak by installing memory-profiler
pip install memory-profiler
and running the mprof utility
mprof run -o multiple-envs-100000-10.dat leak.py; mprof plot -o leak.png multiple-envs-100000-10.dat
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following produces a memory leak
One can see this leak by installing memory-profiler
pip install memory-profiler
and running the mprof utility
mprof run -o multiple-envs-100000-10.dat leak.py; mprof plot -o leak.png multiple-envs-100000-10.dat
The text was updated successfully, but these errors were encountered: