Skip to content

Commit

Permalink
Fix Mac count displayed for small networks.
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayNarshana committed Feb 2, 2022
1 parent bb9cad5 commit e491a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptflops/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'''


def flops_to_string(flops, units='GMac', precision=2):
def flops_to_string(flops, units=None, precision=2):
if units is None:
if flops // 10**9 > 0:
return str(round(flops / 10.**9, precision)) + ' GMac'
Expand Down

0 comments on commit e491a9f

Please sign in to comment.