Skip to content
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

【Fix PIR Unittest No.66】refine pir unique_name and set_parameter #64312

Merged
merged 4 commits into from
May 17, 2024

Conversation

wanghuancoder
Copy link
Contributor

@wanghuancoder wanghuancoder commented May 15, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

Pcard-67164

修复PIR不支持test_imperative_gan.py的问题:
test_imperative_gan利用了静态图,两个main_program共用一个start_program和scope的特性,暴露了PIR的两个问题:

  1. PIR的unique_name不应该是用老静态图的main_program。
  2. 当Program中出现重复prameter时,应该去重。AMP中需要更新parameter,新增updata_parameter接口。
    本PR给予修复。

关联Issue:#63740

Copy link

paddle-bot bot commented May 15, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@wanghuancoder wanghuancoder changed the title refine pir unique_name and set_parameter 【Fix PIR Unittest No.66】refine pir unique_name and set_parameter May 15, 2024
Aurelius84
Aurelius84 previously approved these changes May 16, 2024
PADDLE_ENFORCE_EQ(param->type(),
parameter.type(),
phi::errors::InvalidArgument(
"Duplicate parameter %s with diffrient type.", name));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Duplicate parameter %s with diffrient type.", name));
"Duplicate parameter %s with different type.", name));

Aurelius84
Aurelius84 previously approved these changes May 16, 2024
@wanghuancoder wanghuancoder merged commit 3e9f0e3 into PaddlePaddle:develop May 17, 2024
31 checks passed
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 18, 2024
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 19, 2024
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.

2 participants