Skip to content

Commit

Permalink
reset precision to double to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pluflou committed Dec 20, 2024
1 parent 6bb2e07 commit f34926f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/models/test_torch_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def test_precision(self, california_model):
assert california_model.dtype == torch.double
california_model.precision = "single"
assert california_model.dtype == torch.float
# set back to double
california_model.precision = "double"

def test_model_evaluate_single_sample(self, california_test_input_dict: dict, california_model):
results = california_model.evaluate(california_test_input_dict)
Expand Down

0 comments on commit f34926f

Please sign in to comment.