Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support JAX array API before and after JAX v0.4.1 #2280

Merged
merged 7 commits into from
Aug 16, 2023

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Aug 16, 2023

Description

Allow for versions of JAX older and newer than v0.4.1 to work with the same jax_backend code.

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Add try-except block to determine what JAX array API is available and use this
  information to set the jax backend array_type and array_subtype.
* Backport components of:
   - PR https://github.com/scikit-hep/pyhf/pull/2079
   - PR https://github.com/scikit-hep/pyhf/pull/2085

@matthewfeickert matthewfeickert added fix A bug fix backport Backport PRs from main to release branch labels Aug 16, 2023
@matthewfeickert matthewfeickert self-assigned this Aug 16, 2023
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release/v0.7.x@794052f). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/v0.7.x    #2280   +/-   ##
=================================================
  Coverage                  ?   98.25%           
=================================================
  Files                     ?       69           
  Lines                     ?     4537           
  Branches                  ?      802           
=================================================
  Hits                      ?     4458           
  Misses                    ?       47           
  Partials                  ?       32           
Flag Coverage Δ
contrib 27.55% <0.00%> (?)
doctest 61.07% <0.00%> (?)
unittests-3.10 96.27% <0.00%> (?)
unittests-3.11 96.27% <0.00%> (?)
unittests-3.7 96.25% <0.00%> (?)
unittests-3.8 96.29% <0.00%> (?)
unittests-3.9 96.31% <0.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.

@matthewfeickert matthewfeickert changed the title fix(backport): Update filterwarnings ignore fix: Support JAX API before and after JAX v0.4.1 Aug 16, 2023
@matthewfeickert matthewfeickert changed the title fix: Support JAX API before and after JAX v0.4.1 fix: Support JAX array API before and after JAX v0.4.1 Aug 16, 2023
@matthewfeickert matthewfeickert merged commit b3c5ead into release/v0.7.x Aug 16, 2023
20 of 21 checks passed
@matthewfeickert matthewfeickert deleted the backport/update-build branch August 16, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport PRs from main to release branch fix A bug fix
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant