Skip to content

Commit

Permalink
sort table title of csv
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangBin-gh authored and Jeffwhen committed Mar 10, 2023
1 parent 6df911d commit 947254a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tpu_perf/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def run_mlir(tree, path, raw_config, stat_f, extra):
for fn in filenames:
if not fn.endswith('.bmodel'):
continue
if fn.find('compilation') >= 0:
continue
name = os.path.splitext(fn)[0]
bmodel = os.path.join(dirpath, fn)
profile_path = bmodel + '.compiler_profile_0.txt'
Expand Down Expand Up @@ -308,6 +310,8 @@ def main():
for path, config in tree.walk():
for k in collect_nntc_headers(tree, config):
extra.add(k)
extra = list(extra)
extra.sort()
with open(stat_fn, 'w') as f:
csv_f = csv.writer(f)
if option_cmodel_stats:
Expand Down

0 comments on commit 947254a

Please sign in to comment.