Skip to content

Improve type stability of Jacobians and Hessian, fix test scenarios#337

Merged
gdalle merged 6 commits intomainfrom
gd/typestab11
Jun 26, 2024
Merged

Improve type stability of Jacobians and Hessian, fix test scenarios#337
gdalle merged 6 commits intomainfrom
gd/typestab11

Conversation

@gdalle
Copy link
Copy Markdown
Member

@gdalle gdalle commented Jun 26, 2024

CI

  • Temporarily disable tests on 1.11 because JET picks up new type instabilities

DI source

  • Pre-allocate products for Jacobians and Hessians during preparation, to avoid creating closures in ntuple afterwards

DIT source

  • Adjust num_to_arr scenario to prevent JET errors on 1.11
  • Change reference gradient and hessian for arr_to_num scenarios so that it respects the array type of x (typically GPU arrays)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.77%. Comparing base (83de009) to head (d3ea722).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #337      +/-   ##
==========================================
+ Coverage   96.75%   96.77%   +0.01%     
==========================================
  Files         101      101              
  Lines        4811     4831      +20     
==========================================
+ Hits         4655     4675      +20     
  Misses        156      156              

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

@gdalle gdalle changed the title Ensure type stability of test scenarios in 1.11 Improve type stability of Jacobians and Hessian, fix test scenarios Jun 26, 2024
@gdalle gdalle merged commit ff529cb into main Jun 26, 2024
@gdalle gdalle deleted the gd/typestab11 branch June 26, 2024 22:04
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