-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[JIT] Fix clang-tidy warnings in jit/runtime #47992
Conversation
[ghstack-poisoned]
ghstack-source-id: 5e23046daa4f3c7caf5017ac5a4b931247d3212c Pull Request resolved: #47992
💊 CI failures summary and remediationsAs of commit 1378297 (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 23 times. |
[ghstack-poisoned]
ghstack-source-id: 5e9bd2d9da29ec55f2aeef30400acdc0ec0aeda4 Pull Request resolved: #47992
[ghstack-poisoned]
[ghstack-poisoned]
ghstack-source-id: 1111bda90be179a1a9c68c02950029250080ca47 Pull Request resolved: #47992
@@ -131,7 +131,7 @@ struct CaptureList { | |||
auto tensors = val.toTensorList(); | |||
sizes_.push_back(tensors.size()); | |||
|
|||
for (const at::Tensor& tensor : tensors) { |
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.
Why removing ref?
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.
As per clang-tidy, this is not a ref - there is an implicit conversion to Tensor
here that this makes more explicit. I think it's related to the fact that tensors
is a c10::List
and a range based for actually gives you ListElementReference
and not Tensor
.
[ghstack-poisoned]
ghstack-source-id: c463e35e9b1f8b9a2dbd5ee3fdd8d0050377b998 Pull Request resolved: #47992
@SplitInfinity merged this pull request in fc1153a. |
Summary: Pull Request resolved: pytorch#47992 Test Plan: Imported from OSS Reviewed By: ZolotukhinM Differential Revision: D25258645 Pulled By: SplitInfinity fbshipit-source-id: b3e4576400c101b247e80cb4044fc04471f39a47
Stack from ghstack:
Differential Revision: D25258645