Skip to content

Commit

Permalink
Merge pull request #87 from TanayNarshana/smaller-network-fix
Browse files Browse the repository at this point in the history
Fix Mac count displayed for small networks.
  • Loading branch information
sovrasov authored Feb 7, 2022
2 parents bb9cad5 + e491a9f commit 5f2a45f
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 5f2a45f

Please sign in to comment.