Skip to content

Commit

Permalink
[BugFix] requested_frames_per_batch in distributed collectors
Browse files Browse the repository at this point in the history
ghstack-source-id: 49289de6956460d9aed13d982eb8003eafc35118
Pull Request resolved: #2579
  • Loading branch information
vmoens committed Nov 18, 2024
1 parent db7f08d commit 408cf7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions torchrl/collectors/distributed/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def __init__(
self.policy_weights = policy_weights
self.num_workers = len(create_env_fn)
self.frames_per_batch = frames_per_batch
self.requested_frames_per_batch = frames_per_batch

self.device = device
self.storing_device = storing_device
Expand Down
1 change: 1 addition & 0 deletions torchrl/collectors/distributed/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ def __init__(
self.policy_weights = policy_weights
self.num_workers = len(create_env_fn)
self.frames_per_batch = frames_per_batch
self.requested_frames_per_batch = frames_per_batch

self.device = device
self.storing_device = storing_device
Expand Down
1 change: 1 addition & 0 deletions torchrl/collectors/distributed/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def __init__(
self.policy_weights = policy_weights
self.num_workers = len(create_env_fn)
self.frames_per_batch = frames_per_batch
self.requested_frames_per_batch = frames_per_batch

self.device = device
self.storing_device = storing_device
Expand Down

0 comments on commit 408cf7d

Please sign in to comment.