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

[cherry-pick] Optimize performance of dygraph (#42093, #42103, #42137) #42171

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Apr 24, 2022

PR types

Performance optimization

PR changes

Others

Describe

动态图执行性能优化:

  • 动态图PreparePhiData性能优化
  • GetExpectedKernelType中CanMKLDNNBeUsed函数逻辑优化
  • KernelSignature中移除tuple数据结构,避免不必要的堆内存分配
  • Phi kernel查找逻辑优化,减少重复的map查找
  • 将动态图执行时用到的RuntimeContext和Scope对象转为静态对象,减少每次调用的构造和析构开销

@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.

@phlrain phlrain merged commit 0d53700 into PaddlePaddle:release/2.3 Apr 25, 2022
@zyfncg zyfncg deleted the performance_cherry_pick branch April 25, 2022 03:08
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.

3 participants