mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
hotfix: TRACK_MATCH_STATS=2 should not launch viz [pr] (#8543)
This commit is contained in:
parent
1efb1188d8
commit
83a8217cbf
1 changed files with 1 additions and 1 deletions
|
|
@ -854,7 +854,7 @@ if TRACK_MATCH_STATS:
|
|||
with open(fn:=temp("rewrites.pkl"), "wb") as f:
|
||||
print(f"rewrote {len(tracked_ctxs)} graphs and matched {sum(len(r.matches) for x in tracked_ctxs for r in x)} times, saved to {fn}")
|
||||
with Context(PICKLE_BUFFERS=0): pickle.dump((tracked_keys, tracked_ctxs), f)
|
||||
launch_viz("VIZ", temp("rewrites.pkl"))
|
||||
if getenv("VIZ"): launch_viz("VIZ", temp("rewrites.pkl"))
|
||||
if getenv("PRINT_MATCH_STATS", 1):
|
||||
ret = [0,0,0.0,0.0]
|
||||
for k,v in sorted(list(match_stats.items()), key=lambda x: x[1][2]+x[1][3]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue