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

Importing diffrax initializes Jax backend #106

Closed
brosand opened this issue May 18, 2022 · 3 comments · Fixed by #107
Closed

Importing diffrax initializes Jax backend #106

brosand opened this issue May 18, 2022 · 3 comments · Fixed by #107

Comments

@brosand
Copy link

brosand commented May 18, 2022

Importing diffrax for the first time initializes a jax backend per this jax file. This raises a warning if there is no GPU on the machine, which can cause issues with a CI pipeline that uses Diffrax, as hiding this warning would prevent the warning from showing up later. Would there be an easy fix to stop this backend initialization when importing Diffrax? I don't know much about this level of the code.

@patrick-kidger
Copy link
Owner

So I think this should be fixed on main, but not yet pushed to PyPI. Can you install directly from GitHub and see if this resolves your issue? If it does then I'd be happy to do a new release ASAP.

@brosand
Copy link
Author

brosand commented May 18, 2022

Yes this does solve it, thanks! A new release would be great, so we can merge into our own repo without messing up CI. Glad to resolve this so fast.

@patrick-kidger
Copy link
Owner

New version should appear on PyPI in the next few hours, once the auto-deploy/test scripts have done their job.

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 a pull request may close this issue.

2 participants