Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Nov 18, 2024
2 parents 4453d26 + 974f940 commit 5021e7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sota-implementations/a2c/a2c_mujoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def update(batch):
"CudaGraphModule is experimental and may lead to silently wrong results. Use with caution.",
category=UserWarning,
)
update = CudaGraphModule(update, in_keys=[], out_keys=[], warmup=10)
adv_module = CudaGraphModule(adv_module)
update = CudaGraphModule(update, in_keys=[], out_keys=[], warmup=20)
adv_module = CudaGraphModule(adv_module, warmup=20)

# Create collector
collector = SyncDataCollector(
Expand All @@ -164,7 +164,7 @@ def update(batch):
storing_device=device,
max_frames_per_traj=-1,
trust_policy=True,
compile_policy={"mode": compile_mode} if cfg.compile.compile else False,
compile_policy={"mode": compile_mode} if compile_mode is not None else False,
cudagraph_policy=cfg.compile.cudagraphs,
)

Expand Down

0 comments on commit 5021e7f

Please sign in to comment.