Skip to content

4th-batch-14-条件判断代码逻辑错误#75754

Merged
luotao1 merged 1 commit intoPaddlePaddle:developfrom
ApricityXX:4th_batch_14
Oct 14, 2025
Merged

4th-batch-14-条件判断代码逻辑错误#75754
luotao1 merged 1 commit intoPaddlePaddle:developfrom
ApricityXX:4th_batch_14

Conversation

@ApricityXX
Copy link
Copy Markdown
Contributor

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 的设备才会执行该测试,与注释和业务需求一致。

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Oct 11, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot Bot added the contributor External developers label Oct 11, 2025
@luotao1 luotao1 self-assigned this Oct 13, 2025
@luotao1 luotao1 merged commit 4f4f4ed into PaddlePaddle:develop Oct 14, 2025
72 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants