Skip to content

[DTensor] Extend conv ops to 3D#165241

Closed
malfet wants to merge 5 commits intogh/malfet/554/basefrom
gh/malfet/554/head
Closed

[DTensor] Extend conv ops to 3D#165241
malfet wants to merge 5 commits intogh/malfet/554/basefrom
gh/malfet/554/head

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Oct 11, 2025

Stack from ghstack (oldest at bottom):

Current implementation hardcodes 4D input and output tensor shapes

Change that by computing output_conv_shape for any number of input dims
Replace [.., .., .., slice] with [..., slice]

cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @msaroufim @dcci

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 11, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165241

Note: Links to docs will display an error until the docs builds have been completed.

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 59dd21a with merge base 94e6349 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/inductor oncall: distributed Add this issue/PR to distributed oncall triage queue labels Oct 11, 2025
malfet added a commit that referenced this pull request Oct 11, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by dynamically output_conv_shape for any number of input
dims

ghstack-source-id: c8b006d
Pull Request resolved: #165241
[ghstack-poisoned]
malfet added a commit that referenced this pull request Oct 11, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by dynamically output_conv_shape for any number of input dims
Replace `[.., .., .., slice]` with `[..., slice]`

ghstack-source-id: 1ba1dc7
Pull Request resolved: #165241
@malfet malfet added topic: improvements topic category release notes: distributed (dtensor) release notes category labels Oct 11, 2025
@malfet malfet requested a review from dcci October 11, 2025 19:08
[ghstack-poisoned]
malfet added a commit that referenced this pull request Oct 11, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by dynamically output_conv_shape for any number of input dims
Replace `[.., .., .., slice]` with `[..., slice]`

ghstack-source-id: 18d0089
Pull Request resolved: #165241
@malfet malfet added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 11, 2025
[ghstack-poisoned]
malfet added a commit that referenced this pull request Oct 12, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by dynamically output_conv_shape for any number of input dims
Replace `[.., .., .., slice]` with `[..., slice]`

ghstack-source-id: adb2680
Pull Request resolved: #165241
[ghstack-poisoned]
malfet added a commit that referenced this pull request Oct 12, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by dynamically output_conv_shape for any number of input dims
Replace `[.., .., .., slice]` with `[..., slice]`

ghstack-source-id: 1f5281e
Pull Request resolved: #165241
@malfet malfet requested a review from ezyang October 13, 2025 18:50
)
out_dt = model_dt(x_dt)
out = model_gt(x)
self.assertEqual(out_dt.shape, out.shape)
Copy link
Contributor

Choose a reason for hiding this comment

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

it's worth figuring out why the OpInfo test isn't xpassing now

@malfet
Copy link
Contributor Author

malfet commented Oct 14, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Current implementation hardcodes 4D input and output tensor shapes

Change that by computing `output_conv_shape` for any number of input dims
Replace `[.., .., .., slice]` with `[..., slice]`

Pull Request resolved: pytorch#165241
Approved by: https://github.com/ezyang
@github-actions github-actions bot deleted the gh/malfet/554/head branch November 14, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (dtensor) release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants