4th-batch-14-条件判断代码逻辑错误#75754
Merged
luotao1 merged 1 commit intoPaddlePaddle:developfrom Oct 14, 2025
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
wanghuancoder
approved these changes
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
代码使用了双重否定逻辑
not ... < 7.0,等价于>= 7.0,表示当 GPU 算力大于等于 7.0 时跳过测试。但测试目的恰恰是要在算力 >= 7.0 时才运行,因此该条件导致符合要求的设备被错误跳过,违背了测试意图。将not ... < 7.0改为直接判断< 7.0,使条件变为“当 GPU 算力小于 7.0 时跳过”,从而确保只有算力 >= 7.0 的设备才会执行该测试,与注释和业务需求一致。