Skip to content

Commit

Permalink
TST Enable regression tests on XPU (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
faaany authored Aug 20, 2024
1 parent b4cf1b3 commit 25ab6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regression/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def save_model(model, name, force=False):

def load_output(name):
filename = os.path.join(REGRESSION_DIR, name, "output.pt")
return torch.load(filename)
return torch.load(filename, map_location=infer_device())


@pytest.mark.regression
Expand Down

0 comments on commit 25ab6c9

Please sign in to comment.