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

[JIT] Fix clang-tidy warnings in jit/runtime #47992

Closed

Conversation

SplitInfinity
Copy link

@SplitInfinity SplitInfinity commented Nov 16, 2020

Stack from ghstack:

Differential Revision: D25258645

@dr-ci
Copy link

dr-ci bot commented Nov 16, 2020

💊 CI failures summary and remediations

As 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.

See how this bot performed.

This comment has been revised 23 times.

SplitInfinity pushed a commit that referenced this pull request Nov 16, 2020
ghstack-source-id: 5e9bd2d9da29ec55f2aeef30400acdc0ec0aeda4
Pull Request resolved: #47992
SplitInfinity pushed a commit that referenced this pull request Nov 16, 2020
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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why removing ref?

Copy link
Author

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.

SplitInfinity pushed a commit that referenced this pull request Dec 1, 2020
ghstack-source-id: c463e35e9b1f8b9a2dbd5ee3fdd8d0050377b998
Pull Request resolved: #47992
@facebook-github-bot
Copy link
Contributor

@SplitInfinity merged this pull request in fc1153a.

shaibagon pushed a commit to shaibagon/pytorch that referenced this pull request Dec 3, 2020
Summary: Pull Request resolved: pytorch#47992

Test Plan: Imported from OSS

Reviewed By: ZolotukhinM

Differential Revision: D25258645

Pulled By: SplitInfinity

fbshipit-source-id: b3e4576400c101b247e80cb4044fc04471f39a47
@facebook-github-bot facebook-github-bot deleted the gh/splitinfinity/75/head branch December 6, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants