Skip to content

Commit

Permalink
add test group options
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Jun 13, 2024
1 parent 748b8a9 commit d44e36d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ using DistributionsAD
using LogDensityProblems
using Optimisers
using ADTypes
using ForwardDiff, ReverseDiff, Zygote, Enzyme
using ForwardDiff, ReverseDiff, Zygote

using AdvancedVI

const GROUP = get(ENV, "GROUP", "All")

# Models for Inference Tests
struct TestModel{M,L,S}
model::M
Expand All @@ -34,11 +36,15 @@ include("models/normal.jl")
include("models/normallognormal.jl")

# Tests
include("interface/ad.jl")
include("interface/optimize.jl")
include("interface/repgradelbo.jl")
include("interface/location_scale.jl")

include("inference/repgradelbo_distributionsad.jl")
include("inference/repgradelbo_locationscale.jl")
include("inference/repgradelbo_locationscale_bijectors.jl")
if GROUP == "All" || GROUP == "Interface"
include("interface/ad.jl")
include("interface/optimize.jl")
include("interface/repgradelbo.jl")
include("interface/location_scale.jl")
end

if GROUP == "All" || GROUP == "Inference"
include("inference/repgradelbo_distributionsad.jl")
include("inference/repgradelbo_locationscale.jl")
include("inference/repgradelbo_locationscale_bijectors.jl")
end

1 comment on commit d44e36d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Benchmark suite Current: d44e36d Previous: 5ced9c2 Ratio
normal + bijector/meanfield/ForwardDiff 558668726 ns 535462845 ns 1.04
normal + bijector/meanfield/ReverseDiff 190422991 ns 192925746.5 ns 0.99

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.