File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,15 @@ def apply(self, fgraph):
262
262
"fast_run" ,
263
263
"fusion" ,
264
264
"local_elemwise_fusion" ,
265
- position = 49 ,
265
+ position = 48.7 ,
266
+ )
267
+
268
+ optdb .register (
269
+ "post_fusion" ,
270
+ EquilibriumDB (),
271
+ "fast_run" ,
272
+ "fast_compile" ,
273
+ position = 48.8 ,
266
274
)
267
275
268
276
# especially constant merge
Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ def push_elemwise_constants(fgraph, node):
411
411
contained scalar op.
412
412
"""
413
413
op = node .op
414
-
415
414
if not isinstance (op , Elemwise ):
416
415
return False
417
416
@@ -465,7 +464,7 @@ def is_constant_scalar(x):
465
464
)
466
465
467
466
468
- compile .optdb ["specialize " ].register (
467
+ compile .optdb ["post_fusion " ].register (
469
468
"push_elemwise_constants" ,
470
469
push_elemwise_constants ,
471
470
"fast_run_numba" ,
You can’t perform that action at this time.
0 commit comments