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

[clang-tidy] NO.48-50 enable string-integer-assignment,misplaced-widening-cast,infinite-loop #61492

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

enkilee
Copy link
Contributor

@enkilee enkilee commented Feb 2, 2024

PR types

Others

PR changes

Others

Description

@paddle-bot paddle-bot bot added the contributor External developers label Feb 2, 2024
@GreatV GreatV added the HappyOpenSource 快乐开源活动issue与PR label Feb 3, 2024
@luotao1 luotao1 self-assigned this Feb 3, 2024
@@ -297,21 +297,19 @@ std::vector<ir::Node *> TopologyDfsSortOperations(const Graph &graph) {

// traverse the graph
int num_ops = static_cast<int>(op_queue.size());
while (num_ops) {
Copy link
Contributor

Choose a reason for hiding this comment

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

删除外层循环原因是什么?

Copy link
Contributor

Choose a reason for hiding this comment

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

@enkilee 敏师傅,别忘了回复下哈

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个循环,num_ops--在for里面,while条件无限循环

@luotao1
Copy link
Contributor

luotao1 commented Feb 19, 2024

敏师傅可以直接更新 tracking issue,把 PR号都填上去

@luotao1 luotao1 merged commit f6366dc into PaddlePaddle:develop Feb 20, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants