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

modify graph_pattern to thread_local #43942

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

JZZ-NOTE
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

由于 graph pattern 是进程共享的单例,导致同一个进程中的不同 predictor 的 pass 编号互相影响,同一模型初始化顺序不同,pass 创建的 var name 不同,trt 序列化的 key 不同,无法复用。

将进程共享的单例改为 thread local,但部分平台可能不支持,先支持 gpu 合入

@paddle-bot-old
Copy link

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

@jiweibo jiweibo merged commit 6467ca0 into PaddlePaddle:develop Jun 30, 2022
@JZZ-NOTE JZZ-NOTE deleted the graph_pattern branch March 8, 2023 11:22
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