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

Reduce number of vjp calls in nk.jax.vjp for R->C functions #1681

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhilipVinc
Copy link
Member

@PhilipVinc PhilipVinc commented Dec 28, 2023

Noticed by some user on slack some time ago.

Might lead to some speedups, but unsure about that. Should benchmark.

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3051753) 82.37% compared to head (709e906) 82.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1681      +/-   ##
==========================================
- Coverage   82.37%   82.36%   -0.02%     
==========================================
  Files         291      291              
  Lines       17801    17784      -17     
  Branches     3458     3456       -2     
==========================================
- Hits        14664    14647      -17     
  Misses       2460     2460              
  Partials      677      677              

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

@gcarleo
Copy link
Member

gcarleo commented Jan 4, 2024

Does this lead to a speedup?

@PhilipVinc
Copy link
Member Author

This should be throughly tested before merging.

In limited testing on my laptop (though apple throttles aggressively, so should test on a cluster) I've seen no changes to slight performance degradation.

@PhilipVinc PhilipVinc marked this pull request as draft January 8, 2024 15:40
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.

None yet

2 participants