Skip to content

Conversation

@Aurelius84
Copy link
Contributor

@Aurelius84 Aurelius84 commented Jul 15, 2021

PR types

New features

PR changes

APIs

Describe

  1. 重构了 ExecutorCache 的逻辑,将hashKey 放到python端只做1次计算,避免每次执行Op时都频繁地调用HashFunc,减少不必要的开销
  2. 优化了skip_eager_delete_var获取逻辑,将其cacha到ExecutorInfo中,提升解析速度
  3. 新增SetBuildStrategy前端接口,以支持用户在@to_static中指定build_strategy策略
    • 对大Op添加了一个 program_id 属性,便于前后端同步管理cacheInfo,如便捷地支持前端通过program_id设置build_strategy

TODO

  1. Add build_strategy argument in @to_static (NEXT PR)

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Aurelius84 Aurelius84 changed the title [Dy2Stat]Support BuildStrategy to customize pass [Dy2Stat] Refactor ExecutorCache logic and pre-support BuildStrategy for pass Jul 19, 2021
@Aurelius84 Aurelius84 requested a review from zhhsplendid July 21, 2021 03:58
Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 requested a review from Superjomn July 22, 2021 08:16
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

只动转静使用,推理不会用

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit 609f822 into PaddlePaddle:develop Jul 22, 2021
Aurelius84 added a commit to Aurelius84/Paddle that referenced this pull request Jul 23, 2021
XieYunshen pushed a commit that referenced this pull request Jul 23, 2021
Aurelius84 added a commit to Aurelius84/Paddle that referenced this pull request Jul 26, 2021
Superjomn pushed a commit that referenced this pull request Jul 27, 2021
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