Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 15, 2024
2 parents b24ad47 + 1b4adfd commit 2f29fa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sota-implementations/ppo/ppo_atari.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def update(batch, num_network_updates):

# Compute GAE
with torch.no_grad(), timeit("adv"):
torch.compiler.cudagraph_mark_step_begin()
data = adv_module(data)
with timeit("rb - extend"):
# Update the data buffer
Expand Down
3 changes: 2 additions & 1 deletion sota-implementations/ppo/ppo_mujoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def update(batch, num_network_updates):

# Compute GAE
with torch.no_grad(), timeit("adv"):
data = adv_module(data.to(device))
torch.compiler.cudagraph_mark_step_begin()
data = adv_module(data)
with timeit("rb - extend"):
# Update the data buffer
data_reshape = data.reshape(-1)
Expand Down

0 comments on commit 2f29fa9

Please sign in to comment.