Skip to content

Optimize dygraph InferShape perf #42155

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

Merged

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Apr 23, 2022

PR types

Performance optimization

PR changes

Others

Describe

Optimize dygraph scheduling perf part3

  • 通过缓存去掉动态图 InferShape中两处比较耗时的全局查找Hash操作
  • 顺便做了一些变量命名的整理

TODO:静态图也可以通过类似的缓存机制避免一些全局hash操作,后续PR再添加,现在以解决动态图性能问题为主

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

@chenwhql chenwhql changed the title Optimize dygraph scheduling perf part3 Optimize dygraph InferShape perf Apr 24, 2022
Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@chenwhql chenwhql merged commit 6721376 into PaddlePaddle:develop Apr 25, 2022
chenwhql added a commit to chenwhql/Paddle that referenced this pull request Apr 26, 2022
* init commit

* remove two hash impl

* fix bug

* polish details

* fix compile failed

* fix compile failed

* fix compile failed

* add default kernel sig cache

* fix get kernel arg defs error

* remove kernel arg defs cache

* fix origin op execute
phlrain pushed a commit that referenced this pull request Apr 27, 2022
* Change small vector size (#42202)

* change samll vector size

* Update type_defs.h

* Optimize dygraph InferShape perf (#42155)

* init commit

* remove two hash impl

* fix bug

* polish details

* fix compile failed

* fix compile failed

* fix compile failed

* add default kernel sig cache

* fix get kernel arg defs error

* remove kernel arg defs cache

* fix origin op execute
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.

4 participants