Skip to content

Commit

Permalink
Also set the number of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Aug 6, 2024
1 parent 091dec6 commit 2f7b8e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def test_aurora_small() -> None:
# Load the checkpoint and run the model.
model.load_checkpoint(os.environ["HUGGINGFACE_REPO"], "aurora-0.25-small-pretrained.ckpt")
torch.manual_seed(0) # Very important to seed! The test data was generated using this.
torch.set_num_threads(1)
with torch.inference_mode():
pred = model.forward(batch)

Expand Down

0 comments on commit 2f7b8e3

Please sign in to comment.