Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
willdumm committed Jan 13, 2025
1 parent 2a16057 commit 516376d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_backward_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ def test_old_model_outputs():
dasm_crepe = load_crepe("tests/old_models/dasm_13k-v1jaffe+v1tang-joint")
dnsm_crepe = load_crepe("tests/old_models/dnsm_13k-v1jaffe+v1tang-joint")

dasm_vals = torch.nan_to_num(set_wt_to_nan(torch.load("tests/old_models/dasm_output", weights_only=True), example_seq), 0.0)
dasm_vals = torch.nan_to_num(
set_wt_to_nan(
torch.load("tests/old_models/dasm_output", weights_only=True), example_seq
),
0.0,
)
dnsm_vals = torch.load("tests/old_models/dnsm_output", weights_only=True)

dasm_result = torch.nan_to_num(dasm_crepe([example_seq])[0], 0.0)
Expand Down

0 comments on commit 516376d

Please sign in to comment.