Skip to content

Commit d634e38

Browse files
committed
Fix dictionary type
1 parent 9ac5b0e commit d634e38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ad.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ end
3232
const always_valid_eltypes = (AbstractFloat, AbstractIrrational, Integer, Rational)
3333

3434
"""A dictionary mapping ADTypes to the element types they use."""
35-
eltypes_by_adtype = Dict(
35+
eltypes_by_adtype = Dict{Type,Tuple}(
3636
AutoForwardDiff => (ForwardDiff.Dual,),
3737
AutoReverseDiff => (
3838
ReverseDiff.TrackedArray,
@@ -205,8 +205,8 @@ if INCLUDE_MOONCAKE
205205
push!(ADTYPES, AutoMooncake(; config=nothing))
206206
end
207207
if INCLUDE_ENZYME
208-
push!(ADTYPES, AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Forward)))
209-
push!(ADTYPES, AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Reverse)))
208+
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Forward)))
209+
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Reverse)))
210210
end
211211

212212
# Check that ADTypeCheckContext itself works as expected.

0 commit comments

Comments
 (0)