Skip to content

flip the list-as-tuple behavior for short lists#160794

Closed
ngimel wants to merge 2 commits intomainfrom
ngimel/error_index_list
Closed

flip the list-as-tuple behavior for short lists#160794
ngimel wants to merge 2 commits intomainfrom
ngimel/error_index_list

Conversation

@ngimel
Copy link
Collaborator

@ngimel ngimel commented Aug 15, 2025

Per title, previously we started throwing noisy warnings, but given how popular this pattern was in our test suite decided to leave it as warning, not as silent behavior change for one release.
Now treatSequenceAsTuple would return true in the only case where the sequence was indeed a tuple, so no need for a special function anymore.

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 15, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 178d6de with merge base 3008d98 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@ngimel ngimel requested review from albanD and removed request for albanD August 15, 2025 23:12
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Nice!

@ngimel
Copy link
Collaborator Author

ngimel commented Aug 20, 2025

@pytorchbot merge

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

@seemethere
Copy link
Member

@pytorchbot revert -c ghfirst -m "This if failing internal tests, see D80671241"

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Aug 21, 2025
This reverts commit febfc3e.

Reverted #160794 on behalf of https://github.com/seemethere due to This if failing internal tests, see D80671241 ([comment](#160794 (comment)))
@pytorchmergebot
Copy link
Collaborator

@ngimel your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Aug 21, 2025
@facebook-github-bot
Copy link
Contributor

@ngimel has imported this pull request. If you are a Meta employee, you can view this in D80731003.

markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Per title, previously we started throwing noisy warnings, but given how popular this pattern was in our test suite decided to leave it as warning, not as silent behavior change for one release.
Now `treatSequenceAsTuple` would return `true` in the only case where the sequence was indeed a tuple, so no need for a special function anymore.
Pull Request resolved: pytorch#160794
Approved by: https://github.com/albanD
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
…)"

This reverts commit febfc3e.

Reverted pytorch#160794 on behalf of https://github.com/seemethere due to This if failing internal tests, see D80671241 ([comment](pytorch#160794 (comment)))
@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Oct 20, 2025
@github-actions github-actions bot closed this Nov 19, 2025
@github-actions github-actions bot deleted the ngimel/error_index_list branch December 20, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: indexing Reverted Stale topic: bc breaking topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants