Skip to content

Commit

Permalink
fix wrong mooncake API
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Oct 4, 2024
1 parent 00870d3 commit 930cd6d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bench/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ begin
("Zygote", AutoZygote()),
("ForwardDiff", AutoForwardDiff()),
("ReverseDiff", AutoReverseDiff()),
("Mooncake", AutoMooncake(; config=Mooncake.config())),
("Mooncake", AutoMooncake(; config=Mooncake.Config())),
#("Enzyme", AutoEnzyme()),
],
(familyname, family) in [
Expand Down
2 changes: 1 addition & 1 deletion test/inference/repgradelbo_distributionsad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AD_distributionsad = Dict(
)

if @isdefined(Mooncake)
AD_distributionsad[:Mooncake] = AutoMooncake(; config=Mooncake.config())
AD_distributionsad[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/inference/repgradelbo_locationscale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AD_locationscale = Dict(
)

if @isdefined(Mooncake)
AD_locationscale[:Mooncake] = AutoMooncake(; config=Mooncake.config())
AD_locationscale[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/inference/repgradelbo_locationscale_bijectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AD_locationscale_bijectors = Dict(
)

if @isdefined(Mooncake)
AD_locationscale_bijectors[:Mooncake] = AutoMooncake(; config=Mooncake.config())
AD_locationscale_bijectors[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/inference/scoregradelbo_distributionsad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AD_scoregradelbo_distributionsad = Dict(
)

if @isdefined(Mooncake)
AD_scoregradelbo_distributionsad[:Mooncake] = AutoMooncake(; config=Mooncake.config())
AD_scoregradelbo_distributionsad[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

#if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/inference/scoregradelbo_locationscale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AD_scoregradelbo_locationscale = Dict(
)

if @isdefined(Mooncake)
AD_scoregradelbo_locationscale[:Mooncake] = AutoMooncake(; config=Mooncake.config())
AD_scoregradelbo_locationscale[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/interface/ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const interface_ad_backends = Dict(
)

if @isdefined(Mooncake)
interface_ad_backends[:Mooncake] = AutoMooncake(; config=Mooncake.config())
interface_ad_backends[:Mooncake] = AutoMooncake(; config=Mooncake.Config())
end

if @isdefined(Enzyme)
Expand Down
2 changes: 1 addition & 1 deletion test/interface/repgradelbo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
ADTypes.AutoForwardDiff(), ADTypes.AutoReverseDiff(), ADTypes.AutoZygote()
]
if @isdefined(Mooncake)
push!(ad_backends, AutoMooncake(; config=Mooncake.config()))
push!(ad_backends, AutoMooncake(; config=Mooncake.Config()))
end
if @isdefined(Enzyme)
push!(
Expand Down

0 comments on commit 930cd6d

Please sign in to comment.