Skip to content

Commit

Permalink
Added tests for symm/asym quantization, per_chan quantization, and st…
Browse files Browse the repository at this point in the history
…arted work on minifloat quantization
  • Loading branch information
OscarSavolainenDR committed Apr 14, 2024
1 parent 56daf8d commit b0d1a7d
Show file tree
Hide file tree
Showing 2 changed files with 465 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ def check_positive_int(*args):
We check that every inputted value is positive, and an integer.
"""
for arg in args:
if not arg:
continue
assert arg > 0.0
assert not math.isclose(arg, 0.0)
assert math.isclose(arg % 1, 0.0)
Loading

0 comments on commit b0d1a7d

Please sign in to comment.