Skip to content

Implement contexts for more backends#492

Merged
gdalle merged 13 commits intomainfrom
gd/more_contexts
Sep 24, 2024
Merged

Implement contexts for more backends#492
gdalle merged 13 commits intomainfrom
gd/more_contexts

Conversation

@gdalle
Copy link
Copy Markdown
Member

@gdalle gdalle commented Sep 24, 2024

DI extensions

  • FiniteDifferences: Allow contexts.
  • ForwardDiff: Extend contexts beyond pushforward using closures.
  • Tracker: Allow contexts.
  • Zygote: Extend contexts beyond pullback using closures.

DI tests

  • Add tests with constants for FiniteDifferences and Tracker.

DIT source

  • Fix some default scenarios num_to_num_vec so that they preserve array type (and thus tracking).

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.32%. Comparing base (472c027) to head (3194c2b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #492      +/-   ##
==========================================
+ Coverage   98.30%   98.32%   +0.02%     
==========================================
  Files         106      106              
  Lines        4309     4364      +55     
==========================================
+ Hits         4236     4291      +55     
  Misses         73       73              
Flag Coverage Δ
DI 98.34% <100.00%> (+0.03%) ⬆️
DIT 98.28% <100.00%> (ø)

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 24, 2024 12:13
@gdalle gdalle merged commit 2f06fb1 into main Sep 24, 2024
@gdalle gdalle deleted the gd/more_contexts branch September 25, 2024 17:02
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