Skip to content

Conversation

yebai
Copy link
Member

@yebai yebai commented Mar 5, 2025

Replace all instances of AutoEnzyme() with AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Reverse), function_annotation=Enzyme.Const ) in the following files:

  • test/inference/repgradelbo_distributionsad.jl
  • test/inference/repgradelbo_locationscale_bijectors.jl
  • test/inference/repgradelbo_locationscale.jl
  • test/inference/scoregradelbo_distributionsad.jl
  • test/inference/scoregradelbo_locationscale_bijectors.jl

yebai and others added 4 commits March 5, 2025 21:14
Replace all instances of `AutoEnzyme()` with `AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Reverse), function_annotation=Enzyme.Const )` in the following files:

* `test/inference/repgradelbo_distributionsad.jl`
* `test/inference/repgradelbo_locationscale_bijectors.jl`
* `test/inference/repgradelbo_locationscale.jl`
* `test/inference/scoregradelbo_distributionsad.jl`
* `test/inference/scoregradelbo_locationscale_bijectors.jl`
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yebai yebai merged commit 9cb56eb into main Mar 5, 2025
12 of 16 checks passed
@yebai yebai deleted the yebai/update-enzyme-usage branch March 5, 2025 22:36
Copy link
Contributor

@github-actions github-actions bot left a comment

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: acf55fc Previous: 3b795fd Ratio
normal/RepGradELBO + STL/meanfield/Zygote 15198724796 ns 16473872136 ns 0.92
normal/RepGradELBO + STL/meanfield/ForwardDiff 3240455962.5 ns 3304125733.5 ns 0.98
normal/RepGradELBO + STL/meanfield/ReverseDiff 3069781398 ns 3094818311.5 ns 0.99
normal/RepGradELBO + STL/fullrank/Zygote 14849629285 ns 16338470403 ns 0.91
normal/RepGradELBO + STL/fullrank/ForwardDiff 3567893647.5 ns 3688626107 ns 0.97
normal/RepGradELBO + STL/fullrank/ReverseDiff 5663062388 ns 5646882456 ns 1.00
normal/RepGradELBO/meanfield/Zygote 7039209760 ns 7530702671 ns 0.93
normal/RepGradELBO/meanfield/ForwardDiff 2432843392 ns 2353602785 ns 1.03
normal/RepGradELBO/meanfield/ReverseDiff 1324250921 ns 1313395716.5 ns 1.01
normal/RepGradELBO/fullrank/Zygote 7055155643 ns 7682697941 ns 0.92
normal/RepGradELBO/fullrank/ForwardDiff 2633336787 ns 2635490263.5 ns 1.00
normal/RepGradELBO/fullrank/ReverseDiff 2446923916 ns 2436281408 ns 1.00
normal + bijector/RepGradELBO + STL/meanfield/Zygote 23812917423 ns 25565717237 ns 0.93
normal + bijector/RepGradELBO + STL/meanfield/ForwardDiff 9910518313 ns 10309343356 ns 0.96
normal + bijector/RepGradELBO + STL/meanfield/ReverseDiff 4461054562 ns 4476042343 ns 1.00
normal + bijector/RepGradELBO + STL/fullrank/Zygote 24066961876 ns 25818366598 ns 0.93
normal + bijector/RepGradELBO + STL/fullrank/ForwardDiff 10881089019 ns 10786917463 ns 1.01
normal + bijector/RepGradELBO + STL/fullrank/ReverseDiff 7750916721 ns 7641622123 ns 1.01
normal + bijector/RepGradELBO/meanfield/Zygote 15331386356 ns 15735398805 ns 0.97
normal + bijector/RepGradELBO/meanfield/ForwardDiff 9388134243 ns 9335421424 ns 1.01
normal + bijector/RepGradELBO/meanfield/ReverseDiff 2544179631 ns 2541208289 ns 1.00
normal + bijector/RepGradELBO/fullrank/Zygote 15668964233 ns 16236341205 ns 0.97
normal + bijector/RepGradELBO/fullrank/ForwardDiff 9871406635 ns 10048414269 ns 0.98
normal + bijector/RepGradELBO/fullrank/ReverseDiff 4050689049.5 ns 3948466684 ns 1.03

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

Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@02da94e). Learn more about missing BASE report.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #162   +/-   ##
=======================================
  Coverage        ?   91.73%           
=======================================
  Files           ?       13           
  Lines           ?      351           
  Branches        ?        0           
=======================================
  Hits            ?      322           
  Misses          ?       29           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant