We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
update_locals()
collect_rollouts()
OnPolicyAlgorithm
1 parent c99d65c commit 84163b4Copy full SHA for 84163b4
docs/misc/changelog.rst
@@ -22,6 +22,7 @@ Bug Fixes:
22
^^^^^^^^^^
23
- Moves VectorizedActionNoise into ``_setup_learn()`` in OffPolicyAlgorithm (@PatrickHelm)
24
- Prevents out of bound error on Windows if no seed is passed (@PatrickHelm)
25
+- Calls ``callback.update_locals()`` before ``callback.on_rollout_end()`` in OnPolicyAlgorithm (@PatrickHelm)
26
27
Deprecations:
28
^^^^^^^^^^^^^
stable_baselines3/common/on_policy_algorithm.py
@@ -221,6 +221,8 @@ def collect_rollouts(
221
222
rollout_buffer.compute_returns_and_advantage(last_values=values, dones=dones)
223
224
+ callback.update_locals(locals())
225
+
226
callback.on_rollout_end()
227
228
return True
0 commit comments