Skip to content

[Dy2St] fix name conflict between mulitple to_static program #52692

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

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Apr 8, 2023

PR types

Bug fixes

PR changes

Others

Describe

修复子图 Fallback 时遇到的多个 to_static 生成的 Program 之间存在 name 冲突的问题,因此清除 Eager Tensor 的 name 以避免此问题

问题的原因为两个 to_static 之间使用了 enable_static + disable_static 切换到了一个新的 unique_name.guard(infermeta 里会这样做),导致新的命名重新开始,因此会冲突

另外由于动转静单测已经迁移到了 test/dygraph_to_static 下,因此将 #52110 没有迁移的新单测一并移过去 好像有点问题,暂时不移动了

PCard-66972

@paddle-bot
Copy link

paddle-bot bot commented Apr 8, 2023

你的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.

@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Apr 22, 2023

Sorry to inform you that 5c40f88's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@SigureMo SigureMo closed this Oct 9, 2023
@SigureMo SigureMo deleted the dy2st/multi-to-static-tensor-same-name branch October 9, 2023 02:09
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.

1 participant