-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[NewComm] No.5 compatiable upgrade for c_softmax_with_cross_entropy op #57208
[NewComm] No.5 compatiable upgrade for c_softmax_with_cross_entropy op #57208
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -29,13 +29,18 @@ def pdrun(self): | |||
"0,1", | |||
"c_softmax_with_cross_entropy_op.py", | |||
] | |||
proc = subprocess.Popen(cmd) | |||
|
|||
proc = subprocess.Popen(cmd, env=need_envs) |
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.
proc = subprocess.Popen(cmd, env=need_envs)
起的进程,在windows应该把原本的环境变量都覆盖了,换一种写法吧。
import os
env = os.environ.copy()
env.update(need_envs)
proc = subprocess.Popen(cmd, env=env)
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.
LGTM
PaddlePaddle#57208) * [NewComm] No.5 compatiable upgrade for c_softmax_with_cross_entropy op * fix * fix
PR types
Others
PR changes
APIs
Description
compatiable upgrade for
c_softmax_with_cross_entropy
op#57102