Skip to content

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

Merged
JackCaoG merged 3 commits intomasterfrom
JackCaoG/dynamo_ds_symint_return
Jul 25, 2024
Merged

Fix the crash when symint is part of the output with dynamic torch.compile#7735
JackCaoG merged 3 commits intomasterfrom
JackCaoG/dynamo_ds_symint_return

Conversation

@JackCaoG
Copy link
Copy Markdown
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 alanwaketan and lsy323 July 25, 2024 01:25
@JackCaoG JackCaoG marked this pull request as ready for review July 25, 2024 01:25
@JackCaoG
Copy link
Copy Markdown
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
Copy Markdown
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
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