-
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
[PIR] Adapt paddle.assign to pir #57780
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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 overall。最后一个comment可否确认下?
) | ||
dtype = core.DataType.FLOAT32 | ||
|
||
if dtype == core.VarDesc.VarType.BOOL or dtype == core.DataType.BOOL: |
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 dtype == core.VarDesc.VarType.BOOL or dtype == core.DataType.BOOL: | |
if dtype in [core.VarDesc.VarType.BOOL, core.DataType.BOOL]: |
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修改
_current_expected_place(), | ||
) | ||
if in_dynamic_mode(): | ||
_C_ops.assign_value_( |
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.
这里动态图下没有返回么?还是说其实返回了output本身。如果是后者的话,其实这里可以统一成一个分支?
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.
动态图没返回,因为是inplace的,而新IR下inplace是需要返回一个新value来表示的,故拆成俩个分支
* migrate assign * fix py3 bugs
* migrate assign * fix py3 bugs
* migrate assign * fix py3 bugs
PR types
Others
PR changes
Others
Description
Pcard-67164
适配paddle.assign满足新ir