Skip to content

Conversation

@raayandhar
Copy link
Contributor

More details are in the issue: #4339

Since split.Tensor and split_with_sizes decompose to as_strided (see issue above why as_strided is problematic), we remove them from the decomp tables.

cc @zjgarvey

@zjgarvey
Copy link
Collaborator

You may need to add the recompose pass to the very beginning of lib/Dialect/Torch/Transforms/Passes.cpp::mlir::torch::Torch::createTorchDynamoExportToTorchBackendPipeline

@zjgarvey
Copy link
Collaborator

Hey, can you open a separate PR for the pytorch cxx abi changes? They look great, but make that a standalone patch. We can sync this branch with main when done.

@raayandhar
Copy link
Contributor Author

Hey, can you open a separate PR for the pytorch cxx abi changes? They look great, but make that a standalone patch. We can sync this branch with main when done.

Sure, I don't even know if they work though. I can't reproduce locally.

@raayandhar
Copy link
Contributor Author

@zjgarvey opened a PR #4345 and reset this back to a better state

@raayandhar
Copy link
Contributor Author

@zjgarvey re-requesting a review now that I'm back on this-thanks for your help fixing CI!

@raayandhar
Copy link
Contributor Author

I still think we should also merge #4334, since we will not be deprecating as_strided just yet

@zjgarvey zjgarvey merged commit 288cd5e into llvm:main Oct 31, 2025
3 checks 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.

2 participants