DLR-RM / stable-baselines3

PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.
https://stable-baselines3.readthedocs.io
MIT License
8.35k stars 1.6k forks source link

Set CallbackList children's parent correctly #1939

Closed will-maclean closed 4 weeks ago

will-maclean commented 1 month ago

Fixes issue #1791 by setting the .parent attribute of all children of CallbackList to the CallbackList's parent.

Motivation and Context

Closes #1791.

Types of changes

Checklist

As this is a small change, I don't think any changes to the docs are required. Happy to add documentation somewhere if it's required though.