-
Notifications
You must be signed in to change notification settings - Fork 607
Add pass to convert split to many slice #4562
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4562
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 79312e0 with merge base 6cb5726 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
from torch.fx.passes.utils.source_matcher_utils import get_source_partitions | ||
|
||
|
||
class ConvertSplitToSlicePass(ExportPass): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, like it how simple you made it. :)
class TestSimpleSplit(unittest.TestCase): | ||
class Split(torch.nn.Module): | ||
|
||
test_data: list[tuple[test_data_t]] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this.
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Seems like I messed up the merge conflict resolution. Let me fix the missing |
Actually can you please rebase (force) since there are more conflicts. Thanks. |
Signed-off-by: Erik Lundell <[email protected]> Change-Id: I15f8a37fe88ba6c7d1e357c9ab897069c3c912b2
39454e2
to
bfeab38
Compare
Done :) |
This is a better way to find all aten split nodes, since get_source_partion misses split nodes added during lowering. Signed-off-by: Erik Lundell <[email protected]> Change-Id: Iff850850341240d22e1012511de23b3efdabf1bb
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Change-Id: I15f8a37fe88ba6c7d1e357c9ab897069c3c912b2