Skip to content

Add constant contexts for Enzyme#489

Merged
gdalle merged 4 commits intomainfrom
gd/enzyme_annot
Sep 23, 2024
Merged

Add constant contexts for Enzyme#489
gdalle merged 4 commits intomainfrom
gd/enzyme_annot

Conversation

@gdalle
Copy link
Copy Markdown
Member

@gdalle gdalle commented Sep 23, 2024

DI extensions

  • Enzyme: Support Constant contexts by translating them into Enzyme.Const.
  • Zygote: Type-annotate Vararg{Context,C} to specialize on the number of arguments.

DI docs

  • Specify that contexts now work with ForwardDiff, Zygote and Enzyme.

DI tests

  • Enzyme: Add tests with constantified scenarios

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.87%. Comparing base (1369010) to head (4ef5b09).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   97.84%   97.87%   +0.02%     
==========================================
  Files         107      107              
  Lines        4311     4322      +11     
==========================================
+ Hits         4218     4230      +12     
+ Misses         93       92       -1     
Flag Coverage Δ
DI 98.31% <100.00%> (+<0.01%) ⬆️
DIT 96.95% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@gdalle gdalle marked this pull request as ready for review September 23, 2024 15:36
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.

2 participants