Skip to content

Commit

Permalink
Fix (examples/ptq): fix for bitwidth check (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Apr 16, 2024
1 parent 6de7d5a commit 6d0a8d7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ def apply_learned_round_learning(
def check_positive_int(*args):
"""
We check that every inputted value is positive, and an integer.
If it's None, it is skipped.
"""
for arg in args:
if arg is None:
continue
assert arg > 0.0
assert math.isclose(arg % 1, 0.0)

0 comments on commit 6d0a8d7

Please sign in to comment.