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
1 parent f3fd558 commit f601cce
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 @@ -234,6 +234,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 @@ -223,7 +223,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 f601cce

Please sign in to comment.