Skip to content

Commit

Permalink
Merge pull request #46 from johahi/main
Browse files Browse the repository at this point in the history
small fix to disable future warning with torch.load
  • Loading branch information
lucidrains authored Oct 9, 2024
2 parents d4ae222 + a94ec15 commit 31f61d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enformer_pytorch/modeling_enformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# solution came from @johahi

DIR = Path(__file__).parents[0]
TF_GAMMAS = torch.load(str(DIR / "precomputed"/ "tf_gammas.pt"))
TF_GAMMAS = torch.load(str(DIR / "precomputed"/ "tf_gammas.pt"), weights_only=True)

# helpers

Expand Down

0 comments on commit 31f61d7

Please sign in to comment.