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

Make JAX backend import lazy. #135

Merged
merged 2 commits into from
Apr 15, 2020
Merged

Make JAX backend import lazy. #135

merged 2 commits into from
Apr 15, 2020

Conversation

hawkinsp
Copy link
Contributor

We observed the following surprising behavior: importing tensorflow also imports jax, if installed. This happens because tensorflow has an opt_einsum dependency that is imported eagerly, and the opt_einsum jax backend eagerly imports jax. To avoid this, make the jax import from opt_einsum lazy.

Status

  • [ * ] Ready to go

We observed the following surprising behavior: importing tensorflow also imports jax, if installed. This happens because tensorflow has an opt_einsum dependency that is imported eagerly, and the opt_einsum jax backend eagerly imports jax. To avoid this, make the jax import from opt_einsum lazy.
@hawkinsp
Copy link
Contributor Author

It looks like all CI builds are failing for reasons related to Conda, not the PR.

Copy link
Owner

@dgasmith dgasmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we missed this, thanks for the quick fix. I will look at pushing out a patch release today.

For the CI can you change curl -s to wget -qO- in devtools/travis-ci/before_install.sh:17? It looks like conda changed their download location without CNAME forwarding and curl doesn't follow the redirect.

@dgasmith
Copy link
Owner

The CI failure may be enough impetus to switch the repo over to GH actions.

@codecov
Copy link

codecov bot commented Apr 15, 2020

Codecov Report

Merging #135 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@hawkinsp
Copy link
Contributor Author

Done. The CI builds passed.

A new release would be welcome, thanks!

@dgasmith
Copy link
Owner

Thanks for the CI fix, I pull put out a patch momentarily.

@dgasmith dgasmith merged commit 7756811 into dgasmith:master Apr 15, 2020
@hawkinsp hawkinsp deleted the jax branch April 15, 2020 14:36
@dgasmith
Copy link
Owner

Release is up, conda may take a bit to build.

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