diff --git a/Project.toml b/Project.toml index 217a31c3..07f874aa 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DynamicExpressions" uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b" authors = ["MilesCranmer "] -version = "2.2.0" +version = "2.2.1" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" diff --git a/src/precompile.jl b/src/precompile.jl index f0bf0ef3..aa5f9d36 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -31,9 +31,7 @@ function test_all_combinations(; binary_operators, unary_operators, turbo, types T == Float16 && use_turbo isa Val{true} && continue X = rand(T, 3, 10) - operators = OperatorEnum(; - binary_operators=binops, unary_operators=unaops, define_helper_functions=false - ) + operators = OperatorEnum(1 => unaops, 2 => binops; define_helper_functions=false) x = Node(T; feature=1) c = Node(T; val=one(T)) @@ -186,10 +184,8 @@ function do_precompilation(; mode=:precompile) types=types, ) end - operators = OperatorEnum(; - binary_operators=binary_operators[1], - unary_operators=unary_operators[1], - define_helper_functions=false, + operators = OperatorEnum( + 1 => unary_operators[1], 2 => binary_operators[1]; define_helper_functions=false ) # Want to precompile all above calls. types = [Float32, Float64]