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

normalize/rearrange (kw)args by signature in jit #10724

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YouJiacheng
Copy link
Contributor

@YouJiacheng YouJiacheng commented May 16, 2022

Normalize/Rearrange positional arguments and keyword arguments according to function signature.
Thus the static arguments and donate arguments behavior will not depend on the way arguments passed.
This is a breaking change, deprecation cycle might be needed.
Cache behavior is changed as well, cause test_jit_kwargs failure.
Since the type of argument is determined by signature, test_jit_with_mismatched_static_argnames fail and need some modifications.

Normalize positional arguments and keyword arguments according to function signature.
Thus the static arguments behavior will not depend on the way arguments passed.
@JeppeKlitgaard
Copy link
Contributor

I have a different approach that I would prefer over this in my WIP on argument annotation. I will release this soon, but IMO it would be best to avoid changing the jit transformation behaviour without first completing the discussion in #10614

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