mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-26 15:28:10 -05:00
first fold, then expand (#5673)
Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
@@ -501,7 +501,7 @@ class UOpGraph:
|
||||
|
||||
# expand
|
||||
UOpGraph.cnt += 1
|
||||
if UOpGraph.cnt != getenv("DEBUG_EXPAND", 0): sink = graph_rewrite(sink, expander+self.folder)
|
||||
if UOpGraph.cnt != getenv("DEBUG_EXPAND", 0): sink = graph_rewrite(sink, self.folder+expander)
|
||||
|
||||
# for PTX only
|
||||
if extra_pm: sink = graph_rewrite(sink, self.folder+extra_pm)
|
||||
|
||||
Reference in New Issue
Block a user