Skip to content

Commit d221a17

Browse files
penelopeysmwsmoses
authored andcommitted
Fix dictionary type
1 parent e779765 commit d221a17

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,
@@ -203,8 +203,8 @@ if INCLUDE_MOONCAKE
203203
push!(ADTYPES, AutoMooncake(; config=nothing))
204204
end
205205
if INCLUDE_ENZYME
206-
push!(ADTYPES, AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Forward)))
207-
push!(ADTYPES, AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Reverse)))
206+
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Forward)))
207+
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Reverse)))
208208
end
209209

210210
# Check that ADTypeCheckContext itself works as expected.

0 commit comments

Comments
 (0)