Skip to content

fix: change ==NONE to is under deepspeed/ - #3923

Merged
mrwyattii merged 2 commits into
deepspeedai:masterfrom
digger-yu:patch3
Jul 11, 2023
Merged

mrwyattii merged 2 commits into
deepspeedai:masterfrom
digger-yu:patch3

Conversation

@digger-yu

@digger-yu digger-yu commented Jul 11, 2023 •

Copy link
Copy Markdown
Contributor

fix:weak warning
change ==NONE to is under deepspeed/

==None does not conform to the PEP8 specification
https://peps.python.org/pep-0008/#programming-recommendations

Also in terms of code execution efficiency, is a LOT faster than ==

detail info
modified: deepspeed/init.py
modified: deepspeed/autotuning/tuner/base_tuner.py
modified: deepspeed/comm/ccl.py
modified: deepspeed/comm/comm.py
modified: deepspeed/elasticity/elasticity.py
modified: deepspeed/launcher/runner.py
modified: deepspeed/module_inject/replace_module.py
modified: deepspeed/ops/transformer/inference/diffusers_attention.py
modified: deepspeed/ops/transformer/inference/diffusers_transformer_block.py
modified: deepspeed/ops/transformer/inference/moe_inference.py
modified: deepspeed/ops/transformer/inference/op_binding/residual_add.py
modified: deepspeed/runtime/engine.py
modified: deepspeed/runtime/pipe/module.py
modified: deepspeed/runtime/zero/stage3.py
modified: deepspeed/utils/debug.py
modified: deepspeed/utils/numa.py

@mrwyattii

Copy link
Copy Markdown
Contributor

Thanks @digger-yu!

@mrwyattii
mrwyattii added this pull request to the merge queue Jul 11, 2023
Merged via the queue into deepspeedai:master with commit ce53594 Jul 11, 2023
@digger-yu
digger-yu deleted the patch3 branch July 12, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants