Skip to content

Commit

Permalink
add sync variable (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-s0 authored Apr 1, 2022
1 parent ac47bc7 commit ae40d36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jorldy/manager/distributed_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def run(self, step=1):
if self.mode == "sync":
items = ray.get([actor.run.remote(step) for actor in self.actors])
transitions = reduce(lambda x, y: x + y, [item[1] for item in items])
completed_ratio = 1.0
else:
if len(self.running_ids) == 0:
self.running_ids = [actor.run.remote(step) for actor in self.actors]
Expand Down

0 comments on commit ae40d36

Please # to comment.