Skip to content

Commit 780370e

Browse files
authored
feat: new passes (#1357)
* feat: new passes * Update src/Compiler.jl
1 parent b08e6f0 commit 780370e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Reactant"
22
uuid = "3c362404-f566-11ee-1572-e11a4b42c853"
33
authors = ["William Moses <[email protected]>", "Valentin Churavy <[email protected]>", "Sergio Sánchez Ramírez <[email protected]>", "Paul Berg <[email protected]>", "Avik Pal <[email protected]>", "Mosè Giordano <[email protected]>"]
4-
version = "0.2.122"
4+
version = "0.2.123"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -90,7 +90,7 @@ PythonCall = "0.9"
9090
Random = "1.10"
9191
Random123 = "1.7"
9292
ReactantCore = "0.1.11"
93-
Reactant_jll = "0.0.191"
93+
Reactant_jll = "0.0.192"
9494
ScopedValues = "1.3.0"
9595
Scratch = "1.2"
9696
Sockets = "1.10"

src/Compiler.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,9 @@ function optimization_passes(;
934934
"concat_elementwise",
935935
"reduce_reduce",
936936
"conj_real",
937+
"select_broadcast_in_dim",
938+
# XXX: seems to be busted
939+
# "if_op_lift_common_ops",
937940
# TODO we want to enable but may cause an infinite compile time
938941
# "concat_to_onedim_dusslice",
939942
]
@@ -1022,6 +1025,7 @@ function optimization_passes(;
10221025
"transpose_batch_norm_training",
10231026
"transpose_batch_norm_inference",
10241027
"transpose_batch_norm_grad",
1028+
"transpose_if",
10251029
],
10261030
)
10271031
if AGGRESSIVE_PROPAGATION[]

0 commit comments

Comments
 (0)