Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DynamicExpressions"
uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
authors = ["MilesCranmer <[email protected]>"]
version = "2.2.0"
version = "2.2.1"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
10 changes: 3 additions & 7 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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]
Expand Down
Loading