mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
viz: pass through RewriteNotReady (#11690)
This commit is contained in:
parent
e954decb44
commit
ec4fccb1da
1 changed files with 2 additions and 2 deletions
|
|
@ -848,8 +848,8 @@ class TrackedPatternMatcher(PatternMatcher):
|
|||
continue
|
||||
match_stats[p][1] += 1
|
||||
try: ret = match(uop, ctx)
|
||||
except Exception:
|
||||
if TRACK_MATCH_STATS >= 2 and active_rewrites:
|
||||
except Exception as e:
|
||||
if TRACK_MATCH_STATS >= 2 and active_rewrites and not isinstance(e, RewriteNotReady):
|
||||
active_rewrites[-1].matches.append((track_uop(uop), track_uop(UOp(Ops.NOOP, arg=str(sys.exc_info()[1]))), p.location))
|
||||
raise
|
||||
if ret is not None and ret is not uop:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue