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

Improves the R_omega function in jax_util #29

Merged
merged 3 commits into from
Jun 7, 2024
Merged

Conversation

ahuang314
Copy link
Contributor

The JIT compiler needs to unroll the entire for loop in order to compile it. By replacing the standard for loop with jax.lax.fori_loop, the compiler no longer needs to unroll the entire loop for compilation, saving a lot of time.

@aymgal aymgal merged commit 1229382 into Herculens:main Jun 7, 2024
1 check passed
@aymgal
Copy link
Member

aymgal commented Jun 7, 2024

Thanks a lot @ahuang314 !

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9403481523

Details

  • 7 of 8 (87.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 23.607%

Changes Missing Coverage Covered Lines Changed/Added Lines %
herculens/Util/jax_util.py 7 8 87.5%
Totals Coverage Status
Change from base Build 9353324595: 0.02%
Covered Lines: 1521
Relevant Lines: 6443

💛 - Coveralls

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.

3 participants