Commit e298098
committed
Avoid backtracking in FusionOptimizer
The change in number of fused kernels has to do with the order of iteration, and could be replicated in the old approach by iterating in topological order. It was an accident that it happen to visit in an order where it connected two branches, instead of keeping them separate. The underlying limitation already existed and is described in #2491 parent 9b90343 commit e298098
File tree
2 files changed
+292
-363
lines changed- pytensor/tensor/rewriting
- tests/tensor/rewriting
2 files changed
+292
-363
lines changed
0 commit comments