Skip to content

(fix): use static_argnums for jax jit #165

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

Merged
merged 2 commits into from
Mar 8, 2023
Merged

(fix): use static_argnums for jax jit #165

merged 2 commits into from
Mar 8, 2023

Conversation

ilan-gold
Copy link
Collaborator

Description

Because of the expand_func_values_and_squeeze_integral decorator on calculate_result, the jax JIT has no way of knowing what is n_per_dim or dim so we switch to numbered static arguments.

Summary of changes

  • ...
  • ...

Resolved Issues

How Has This Been Tested?

  • Test A
  • Test B

Related Pull Requests

  • #PR

@ilan-gold ilan-gold mentioned this pull request Mar 6, 2023
1 task
@ilan-gold ilan-gold requested a review from gomezzz March 6, 2023 13:11
Copy link
Collaborator

@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

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

👍

@gomezzz
Copy link
Collaborator

gomezzz commented Mar 6, 2023

@ilan-gold Should we maybe wait with merging this until the JIT tests? 🤔

@ilan-gold
Copy link
Collaborator Author

@gomezzz I'm find with that, yeah.

@ilan-gold
Copy link
Collaborator Author

ilan-gold commented Mar 8, 2023

Ok going to merge this first and then the next one so that we have the history. Out of curiosity and before I merge, why no squashing of merge commits?

@gomezzz
Copy link
Collaborator

gomezzz commented Mar 8, 2023

Ok going to merge this first and then the next one so that we have the history.

👍

Out of curiosity and before I merge, why no squashing of merge commits?

Bold to assume there is a reason :D

@ilan-gold
Copy link
Collaborator Author

ilan-gold commented Mar 8, 2023

Bold to assume there is a reason :D

😆

@ilan-gold ilan-gold merged commit e5875df into develop Mar 8, 2023
@ilan-gold ilan-gold deleted the fix_jit branch March 8, 2023 13:04
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