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

[XLA:Python] Refactor jit argument parsing code. #64329

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

copybara-service[bot]
Copy link

[XLA:Python] Refactor jit argument parsing code.

  • Put the logic to split static and dynamic arguments under ParseArguments, which returns a ArgumentSignature and a list of dynamic arguments.
  • Move the other argument parsing logic for jit and pmap into a separate CallSignature type.

This simplifies the code, and prepares for adding another use case for the argument parsing code without the rest of the jit logic.

Refactoring only, no functional changes intended.

* Put the logic to split static and dynamic arguments under ParseArguments, which returns a ArgumentSignature and a list of dynamic arguments.
* Move the other argument parsing logic for jit and pmap into a separate CallSignature type.

This simplifies the code, and prepares for adding another use case for the argument parsing code without the rest of the jit logic.

Refactoring only, no functional changes intended.

PiperOrigin-RevId: 619895559
@copybara-service copybara-service bot closed this Mar 28, 2024
@copybara-service copybara-service bot deleted the exported_pr_618030729 branch March 28, 2024 13:01
@copybara-service copybara-service bot merged commit 1713d55 into master Mar 28, 2024
1 check passed
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

1 participant