-
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
[IR] Refine the Build interface of split op #56924
[IR] Refine the Build interface of split op #56924
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
23b37ed
to
abc23cb
Compare
abc23cb
to
000a8db
Compare
… dev/refine_mutable_attr_split
@@ -759,7 +759,7 @@ def relu(x, name=None): | |||
if in_dynamic_mode(): | |||
return _C_ops.relu(x) | |||
else: | |||
if paddle.ir.core._use_new_ir_api(): | |||
if paddle.framework.in_dynamic_or_new_ir_mode(): |
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.
这里应该是:
if in_dynamic_or_new_ir_mode():
return _C_ops.relu(x)
else:
# 老静态图分支
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 完善一下
* fix bug * fix bug
PR types
New features
PR changes
Others
Description
完善 Split op 的 Build 函数
Other
Pcard-67164