Skip to content

Commit eab884e

Browse files
committed
fix: precompilation warning
1 parent 3dcbbe0 commit eab884e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicExpressions"
22
uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
33
authors = ["MilesCranmer <[email protected]>"]
4-
version = "2.2.0"
4+
version = "2.2.1"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/precompile.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ function test_all_combinations(; binary_operators, unary_operators, turbo, types
3131
T == Float16 && use_turbo isa Val{true} && continue
3232

3333
X = rand(T, 3, 10)
34-
operators = OperatorEnum(;
35-
binary_operators=binops, unary_operators=unaops, define_helper_functions=false
36-
)
34+
operators = OperatorEnum(1 => unaops, 2 => binops; define_helper_functions=false)
3735
x = Node(T; feature=1)
3836
c = Node(T; val=one(T))
3937

@@ -186,10 +184,8 @@ function do_precompilation(; mode=:precompile)
186184
types=types,
187185
)
188186
end
189-
operators = OperatorEnum(;
190-
binary_operators=binary_operators[1],
191-
unary_operators=unary_operators[1],
192-
define_helper_functions=false,
187+
operators = OperatorEnum(
188+
1 => unary_operators[1], 2 => binary_operators[1]; define_helper_functions=false
193189
)
194190
# Want to precompile all above calls.
195191
types = [Float32, Float64]

0 commit comments

Comments
 (0)