Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Feb 16, 2024
1 parent ceb96e1 commit 1b80cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enzyme_ad/jax/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,10 @@ def make_zero(tan, prim):
if pipeline_options.mlir_ad() and kwargs["lang"] == LANG_MHLO:
act_tup = ",".join(["enzyme_dup" for a in arg_primals])
newpasses = (
"stablehlo-aggressive-simplification,cse,print,enzyme-wrap{infn=main outfn= retTy=enzyme_dup argTys="
"func.func(stablehlo-aggressive-simplification),cse,print,enzyme-wrap{infn=main outfn= retTy=enzyme_dup argTys="
+ act_tup
+ " mode=ForwardMode},"
+ "arith-raise{stablehlo=true}, stablehlo-aggressive-simplification, cse, canonicalize, print,"
+ "arith-raise{stablehlo=true}, func.func(stablehlo-aggressive-simplification), cse, canonicalize, print,"
+ pipeline_options.pass_pipeline()
)
pipeline_options = NewXLAPipeline(newpasses, pipeline_options.mlir_ad())
Expand Down

0 comments on commit 1b80cfb

Please sign in to comment.