[RLlib] Issue 15910: APEX current learning rate not updated on local worker (#15911)

This commit is contained in:
Antoine Galataud 2021-07-13 20:01:00 +02:00 committed by GitHub
parent fac6045c87
commit 16f1011c07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()