KEMBAR78
[iter] Add support for sequence protocol in `iter(..)` by guilhermeleobas · Pull Request #156371 · pytorch/pytorch · GitHub
Skip to content

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 18, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 548d5f1 with merge base 9d32aa9 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

[ghstack-poisoned]
[ghstack-poisoned]
guilhermeleobas and others added 5 commits June 20, 2025 14:34
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@guilhermeleobas guilhermeleobas marked this pull request as ready for review June 24, 2025 13:30
[ghstack-poisoned]
return functools.reduce(operator.add, iterable, start)


# TODO(guilhermeleobas): use substitute_in_graph for iter()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this possible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think so. There are other builtins implemented using substitute_in_graph.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
rtimpe pushed a commit to rtimpe/pytorch that referenced this pull request Jul 17, 2025
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
rtimpe pushed a commit to rtimpe/pytorch that referenced this pull request Jul 24, 2025
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156460

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158410

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Rebased gh/guilhermeleobas/206/orig onto refs/remotes/origin/main because #158410 was rebased, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/156371)

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158410

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156460

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Rebased gh/guilhermeleobas/206/orig onto refs/remotes/origin/main because #158410 was rebased, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/156371)

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158410

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158410

pytorchmergebot pushed a commit that referenced this pull request Jul 29, 2025
pytorchmergebot pushed a commit that referenced this pull request Jul 29, 2025
This object keeps track when the iterator is exhausted (raise Stopiteration).

Pull Request resolved: #156460
Approved by: https://github.com/zou3519
ghstack dependencies: #156371, #156416
pytorchmergebot pushed a commit that referenced this pull request Jul 29, 2025
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
This object keeps track when the iterator is exhausted (raise Stopiteration).

Pull Request resolved: #156460
Approved by: https://github.com/zou3519
ghstack dependencies: #156371, #156416
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
@github-actions github-actions bot deleted the gh/guilhermeleobas/183/head branch August 29, 2025 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants