Skip to content

Commit

Permalink
Update examples/impala/impala_multi_node_ray.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Moens <vincentmoens@gmail.com>
  • Loading branch information
albertbou92 and vmoens authored Nov 22, 2023
1 parent 72a3c6e commit 4a061b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/impala/impala_multi_node_ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def main(cfg: "DictConfig"): # noqa: F821

# Create a single batch of trajectories
stacked_data = torch.stack(accumulator, dim=0)
stacked_data = stacked_data.to(device)
stacked_data = stacked_data.to(device, non_blocking=True)

# Compute advantage
stacked_data = adv_module(stacked_data)
Expand Down

0 comments on commit 4a061b5

Please sign in to comment.