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 JIT SaveLoad Unittest No.12,22-23】modify test_se_resnet.py , test_build_strategy.py #64362

Merged

Conversation

xiaoguoguo626807
Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented May 16, 2024

PR Category

others

PR Types

others

Description

pcard-67164

test_se_resnet.py中 save 传递了参数output_sepc, 但是to_static返回的value和save 时的value 不是同一个,原因是save时加了input_spec,设置动态shape,save 时会重新动转静。 修复方法是支持output_spec 传递int 表示其在output列表中的位置。使得能够拿到需要的output value.

Related links

Copy link

paddle-bot bot commented May 16, 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.

@xiaoguoguo626807 xiaoguoguo626807 changed the title 【Fix PIR JIT SaveLoad Unittest No.22-23】modify test_se_resnet.py , test_build_strategy.py 【Fix PIR JIT SaveLoad Unittest No.12,22-23】modify test_se_resnet.py , test_build_strategy.py May 16, 2024
@xiaoguoguo626807 xiaoguoguo626807 merged commit 5e8ab2f into PaddlePaddle:develop May 17, 2024
31 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the test_se_resnet branch May 17, 2024 02:55
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 18, 2024
… test_build_strategy.py (PaddlePaddle#64362)

* modify test_modbile_net.py

* delete print

* modify ci

* modify se_resnet

* add change

* add test_input_sepc
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 19, 2024
… test_build_strategy.py (PaddlePaddle#64362)

* modify test_modbile_net.py

* delete print

* modify ci

* modify se_resnet

* add change

* add test_input_sepc
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