Skip to content

[BC breaking] Remove deprecated imports for torch.utils.data.datapipes.iter.grouping#163438

Closed
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:remove_deprecated2
Closed

[BC breaking] Remove deprecated imports for torch.utils.data.datapipes.iter.grouping#163438
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:remove_deprecated2

Conversation

@cyyever
Copy link
Collaborator

@cyyever cyyever commented Sep 21, 2025

This PR removes import tricks of SHARDING_PRIORITIES and ShardingFilterIterDataPipe from torch.utils.data.datapipes.iter.grouping. They are declared to be removed in PyTorch 2.1 but not.
Before change:

import torch.utils.data.datapipes.iter.grouping.SHARDING_PRIORITIES
import torch.utils.data.datapipes.iter.grouping.ShardingFilterIterDataPipe

works
After change:
there is an import error exception.

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 21, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit a939d99 with merge base 3a7db34 (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 the release notes: dataloader release notes category label Sep 21, 2025
@cyyever cyyever requested a review from ezyang September 21, 2025 08:39
Copy link
Contributor

@janeyx99 janeyx99 left a comment

Choose a reason for hiding this comment

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

Nice, but please write up a BC breaking note in the PR Description similar to in https://docs.google.com/document/d/14OmgGBr1w6gl1VO47GGGdwrIaUNr92DFhQbY_NEk8mQ/edit?tab=t.0#heading=h.xhn730wluw68

@cyyever
Copy link
Collaborator Author

cyyever commented Sep 22, 2025

@janeyx99 I have no permission to open the google doc.

@cyyever cyyever changed the title Remove deprecated code for datapipes [BC breaking] Remove deprecated code for datapipes Sep 23, 2025
@cyyever cyyever changed the title [BC breaking] Remove deprecated code for datapipes [BC breaking] Remove deprecated imports for torch.utils.data.datapipes.iter.grouping Sep 23, 2025
@cyyever
Copy link
Collaborator Author

cyyever commented Sep 23, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 23, 2025
@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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@cyyever
Copy link
Collaborator Author

cyyever commented Sep 23, 2025

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@pytorchmergebot
Copy link
Collaborator

Successfully rebased remove_deprecated2 onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout remove_deprecated2 && git pull --rebase)

@cyyever
Copy link
Collaborator Author

cyyever commented Sep 23, 2025

@pytorchmergebot merge -f "Pending ROCm tests"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@cyyever cyyever deleted the remove_deprecated2 branch September 23, 2025 05:04
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
…s.iter.grouping (pytorch#163438)

This PR removes import tricks of `SHARDING_PRIORITIES` and  `ShardingFilterIterDataPipe` from `torch.utils.data.datapipes.iter.grouping`. They are declared to be removed in PyTorch 2.1 but not.
Before change:
```
import torch.utils.data.datapipes.iter.grouping.SHARDING_PRIORITIES
import torch.utils.data.datapipes.iter.grouping.ShardingFilterIterDataPipe
```
works
After change:
there is an import error exception.
Pull Request resolved: pytorch#163438
Approved by: https://github.com/janeyx99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: dataloader release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants