Skip to content

Conversation

@Lucaskabela
Copy link
Contributor

The deprecation warning led to warning spamming in PyTorch APIs, like torch.compile. This is not how a deprecation warning should go: if we add a deprecation warning, we'd better update our built-in APIs to prevent warning spam.
Pull Request resolved: #166956 Approved by: https://github.com/albanD

(cherry picked from commit 527b110)

Fixes #166286

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 4, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

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

✅ No Failures

As of commit f904e71 with merge base 4840a1a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@Lucaskabela
Copy link
Contributor Author

cc @zou3519 @BoyuanFeng to validate this manual cherrypick looks correct

@Lucaskabela Lucaskabela linked an issue Nov 4, 2025 that may be closed by this pull request
#endif
namespace at {

namespace {
Copy link
Contributor

Choose a reason for hiding this comment

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

er don't you still need the anonymous namespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep patching that on my end

The deprecation warning led to warning spamming in PyTorch APIs, like
torch.compile. This is not how a deprecation warning should go: if we
add a deprecation warning, we'd better update our built-in APIs to
prevent warning spam.
Pull Request resolved: #166956
Approved by: https://github.com/albanD

(cherry picked from commit 527b110)
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

lgtm as long as it compiles

@atalman atalman merged commit a06141f into release/2.9 Nov 5, 2025
87 checks passed
@github-actions github-actions bot deleted the cherrypick_166956 branch December 6, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unnecessary warning triggered by inductor in pytorch 2.9

3 participants