Skip to content

Commit

Permalink
Fix bug when running on GPUs (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtritt authored Aug 10, 2023
1 parent 3f1278d commit 8270e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gtnet/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def run_torchscript_inference(fastas, model, conf_models, window, step, vocab, s
s = e

del total_chunks
total_chunks = torch.tensor(tmp_chunks)
total_chunks = torch.tensor(tmp_chunks, device=device)
del tmp_chunks

del all_levels_aggregated
Expand Down

0 comments on commit 8270e52

Please sign in to comment.