Skip to content

Add ET_PRI_* macros for Tensor methods that differ with ATen #9768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

swolchok
Copy link
Contributor

#9751 added a bunch of logging to error messages. We discovered after commit that it caused -Wformat warnings (turned into errors via -Werror) in ATen mode, because a bunch of Tensor methods return different types between ExecuTorch and ATen. This PR adds formatting macros to be used with this methods and uses them.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Mar 31, 2025

Stack from ghstack (oldest at bottom):

Copy link

pytorch-bot bot commented Mar 31, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 2 Pending

As of commit cb06bce with merge base 7fd589d (image):
💚 Looks good so far! There are no failures yet. 💚

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

swolchok added a commit that referenced this pull request Mar 31, 2025
ghstack-source-id: 2dcf8fe
ghstack-comment-id: 2766812039
Pull-Request-resolved: #9768

#9751 added a bunch of logging to error messages. We discovered after commit that it caused -Wformat warnings (turned into errors via -Werror) in ATen mode, because a bunch of Tensor methods return different types between ExecuTorch and ATen. This PR adds formatting macros to be used with this methods and uses them.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 31, 2025
@swolchok swolchok requested a review from kirklandsign March 31, 2025 16:49
@swolchok swolchok added the release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) label Mar 31, 2025
@swolchok swolchok merged commit 11cf2c8 into main Mar 31, 2025
81 of 84 checks passed
@swolchok swolchok deleted the gh/swolchok/409/head branch March 31, 2025 17:46
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
#9751 added a bunch of logging to error messages. We discovered after
commit that it caused -Wformat warnings (turned into errors via -Werror)
in ATen mode, because a bunch of Tensor methods return different types
between ExecuTorch and ATen. This PR adds formatting macros to be used
with this methods and uses them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants