Skip to content

Commit

Permalink
fix(test): dump and load onnx models
Browse files Browse the repository at this point in the history
  • Loading branch information
ganler committed Mar 19, 2024
1 parent 971e397 commit 6e0f0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/torch/test_dump_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_onnx_load_dump(tmp_path):
# check oracle
compare_two_oracle(oracle, loaded_testcase.oracle)

loaded_model = loaded_testcase.model.torch_model
loaded_model = loaded_testcase.model
loaded_model.sat_inputs = {k: torch.from_numpy(v) for k, v in oracle.input.items()}
rerun_oracle = loaded_model.make_oracle()
compare_two_oracle(oracle, rerun_oracle)
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_bug_report_load_dump(tmp_path):
# check oracle
compare_two_oracle(oracle, loaded_testcase.oracle)

loaded_model = loaded_testcase.model.torch_model
loaded_model = loaded_testcase.model
loaded_model.sat_inputs = {k: torch.from_numpy(v) for k, v in oracle.input.items()}
rerun_oracle = loaded_model.make_oracle()
compare_two_oracle(oracle, rerun_oracle)

0 comments on commit 6e0f0e0

Please sign in to comment.