-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[CodeStyle][Ruff][BUAA][D-[7-13]] Fix ruff RUF015
diagnostic for 6 files in python/paddle/
#67359
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
for param_grad in params_grads | ||
if param_grad[0].name == self.table_name | ||
), | ||
None, # Default value if no matching param_grad is found |
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.
为什么要修改原来的逻辑?原来如果找不到会直接报错,而现在会隐藏
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.
那我是直接把 None 去掉吗?
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.
不要修改原有逻辑,去掉
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.
PR Category
User Experience
PR Types
Devs
Description
python/paddle/distributed/passes/auto_parallel_data_parallel_optimization.py
python/paddle/distributed/transpiler/distribute_transpiler.py
python/paddle/pir/math_op_patch.py
python/paddle/static/amp/function_overload.py
setup.py
test/sot/test_model_switch_training.py
test/xpu/test_tril_triu_op_xpu.py
Related Links
@gouzil