-
Notifications
You must be signed in to change notification settings - Fork 742
Use std::string_view and std::optional #10541
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10541
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 02757cc with merge base c6c3616 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
0208795 to
a935a30
Compare
|
@pytorchbot label "topic: not user facing" |
|
@swolchok any thoughts on this PR? |
|
I had proposed this change previously, but @dbort brought up that the std types throw exceptions, which may be a problem for no-exception environments. Has there been more discussion on this point? |
|
Currently |
swolchok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems fine, but please put the submodule back and then ping me for accept
|
@swolchok Ping |
|
@pytorchbot label "release notes: none" |
swolchok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
|
@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
this appears to have changed numerics for test-llava-runner-linux: https://github.com/pytorch/executorch/actions/runs/15386371381/job/43336641649?pr=10541 however, that test is known to segfault from time to time. rerunning it one more time to see if the output change persists. |
|
@larryliu0820 are you the llava PoC? this diff appears to change numerics slightly but only for the llava test; should that be blocking? |
|
hm, this really shouldn't change numerics; I'm pretty sure that torch::executor::optional and torch::executor::string_view are the std equivalents in all cases. we can verify that by sending an interim PR that forces the exec_aten types to be typedefs for the std types in all cases. |
|
OK, we landed #11321 , rebasing to see what CI has to say about that. (sorry for the delay; I was out for a couple days and am catching back up.) |
|
@swolchok The current failures are unrelated |
I agree; I'll rerun them once test-llava-runner-linux (very slow, part of the same workflow) is done |
|
@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
nothing alarming showing up internally! merging. |
Summary
This PR moves
executorch::aten::{string_view,optional}to std counterparts.