mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[RLlib] Issue 15910: APEX current learning rate not updated on local worker (#15911)
This commit is contained in:
parent
fac6045c87
commit
16f1011c07
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ class UpdateWorkerWeights:
|
|||
self.weights = ray.put(
|
||||
self.workers.local_worker().get_weights())
|
||||
actor.set_weights.remote(self.weights, _get_global_vars())
|
||||
# Also update global vars of the local worker.
|
||||
self.workers.local_worker().set_global_vars(_get_global_vars())
|
||||
self.steps_since_update[actor] = 0
|
||||
# Update metrics.
|
||||
metrics = _get_shared_metrics()
|
||||
|
|
Loading…
Add table
Reference in a new issue