Skip to content
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

Fix missing header <algorithm> in tensor_ptr.h #6778

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

anyj0527
Copy link
Contributor

This commit import header explictly in extension/tensor/tensor_ptr.h, which uses std::transfrom defined in the header.

Some recent compilers emits error (I checked gcc 14.1.0 / clang 18.1.6):

.../executorch/extension/tensor/tensor_ptr.h:114:12: error: no member named
'transform' in namespace 'std'

This commit import header <algorithm> explictly in extension/tensor/tensor_ptr.h,
which uses `std::transfrom` defined in the header.

Some recent compilers emits error (I checked gcc 14.1.0 / clang 18.1.6):
```
.../executorch/extension/tensor/tensor_ptr.h:114:12: error: no member named
'transform' in namespace 'std'
```
Copy link

pytorch-bot bot commented Nov 12, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4240318 with merge base 4947e27 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@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 Nov 12, 2024
@facebook-github-bot
Copy link
Contributor

@GregoryComer has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@GregoryComer GregoryComer merged commit c8967da into pytorch:main Nov 12, 2024
40 of 41 checks passed
@GregoryComer
Copy link
Member

Thanks for catching this! Merged.

@anyj0527 anyj0527 deleted the fix-missing-header-tensor_ptr_h branch November 13, 2024 00:46
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants