Skip to content

Commit

Permalink
Fix parsing math fidelity
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrkicTT committed Feb 7, 2025
1 parent 74704d2 commit bfa250c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forge/test/operators/utils/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ def test_id_to_test_vector(cls, test_id: str) -> TestVector:
# As last parameter in test id is math fidelity, in case of duplicated tests numeric suffix should be ignored
if math_fidelity_part is not None and math_fidelity_part.startswith("HiFi4"):
math_fidelity_part = "HiFi4"
if math_fidelity_part is not None and math_fidelity_part.startswith("None"):
math_fidelity_part = None
math_fidelity = eval(f"forge._C.{math_fidelity_part}") if math_fidelity_part is not None else None

return TestVector(
Expand Down

0 comments on commit bfa250c

Please sign in to comment.