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

Fix the crash when symint is part of the output with dynamic torch.compile #7735

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

JackCaoG
Copy link
Collaborator

@JackCaoG JackCaoG commented Jul 24, 2024

when we compile the program with torch.compile(backend="openxla"), the output of the fx graph might contains int. The logic of the dynamo bridge currently expects all output to be tensor and will crash when calling pybind.

@JackCaoG JackCaoG added the tpuci label Jul 24, 2024
@JackCaoG JackCaoG requested review from lsy323 and alanwaketan July 25, 2024 01:25
@JackCaoG JackCaoG marked this pull request as ready for review July 25, 2024 01:25
@JackCaoG
Copy link
Collaborator Author

@alanwaketan can you take a look at this pr? If everything looks OK you can also merge it directly.

@JackCaoG JackCaoG enabled auto-merge (squash) July 25, 2024 04:45
Copy link
Collaborator

@alanwaketan alanwaketan left a comment

Choose a reason for hiding this comment

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

LGTM.

@JackCaoG JackCaoG merged commit df59b1c into master Jul 25, 2024
23 checks passed
yitongh pushed a commit to AlibabaPAI/xla that referenced this pull request Oct 11, 2024
yitongh pushed a commit to AlibabaPAI/xla that referenced this pull request Dec 11, 2024
yitongh pushed a commit to AlibabaPAI/xla that referenced this pull request Dec 11, 2024
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.

2 participants