Skip to content

Commit

Permalink
reset torch compiler cache just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Oct 26, 2024
1 parent baffed8 commit 684027a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pokemonred_puffer/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def launch_agent(
debug: bool = False,
):
def _fn():
import torch

torch.compiler.reset()

agent_config: DictConfig = OmegaConf.load(os.environ["WANDB_SWEEP_PARAM_PATH"]).x.value
agent_config = update_base_config(base_config, agent_config)
train.train(config=agent_config, debug=debug, track=True)
Expand Down

0 comments on commit 684027a

Please sign in to comment.