stable-baselines3/stable_baselines3/common
Ole Petersen 6c00565778
Fix memory leak in base_class.py (#1908)
* Fix memory leak in base_class.py

Loading the data return value is not necessary since it is unused. Loading the data causes a memory leak through the ep_info_buffer variable. I found this while loading a PPO learner from storage on a multi-GPU system since the ep_info_buffer is loaded to the memory location it was on while it was saved to disk, instead of the target loading location, and is then not cleaned up.

* Update changelog.rst

* Update changelog

---------

Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
2024-05-15 15:59:32 +02:00
..
envs BitFlippingEnv argument check and docs clarification (#1698) 2023-09-27 10:18:30 +02:00
sb2_compat Fix type annotations of buffers (#1700) 2023-09-28 18:52:46 +02:00
vec_env Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
__init__.py Update docs (custom policy, type hints) (#167) 2020-09-29 20:41:14 +03:00
atari_wrappers.py Fix VecEnv type hints (#1736) 2023-11-08 09:46:40 +01:00
base_class.py Fix memory leak in base_class.py (#1908) 2024-05-15 15:59:32 +02:00
buffers.py Avoid torch type-error under torch.compile (#1922) 2024-05-13 17:28:23 +02:00
callbacks.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
distributions.py Fix sum_independent_dims docstring to reflect output shape (#1851) 2024-02-27 14:49:42 +01:00
env_checker.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
env_util.py vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00
evaluation.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
logger.py Fix reward of SimpleMultiObsEnv to always be float (#1676) 2023-09-16 08:56:04 +02:00
monitor.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
noise.py vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00
off_policy_algorithm.py Fix VecEnv type hints (#1736) 2023-11-08 09:46:40 +01:00
on_policy_algorithm.py Log success rate for on policy algorithms (#1870) 2024-03-22 12:13:48 +01:00
policies.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
preprocessing.py Fix policies type annotations (#1735) 2023-11-06 18:35:28 +01:00
results_plotter.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
running_mean_std.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
save_util.py Hotfix: revert loading with weights_only=True (#1913) 2024-04-27 15:08:38 +02:00
torch_layers.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
type_aliases.py Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
utils.py Cast learning_rate to float lambda for pickle safety when doing model.load (#1901) 2024-04-22 10:04:01 +02:00