Skip to content

Conversation

@JZZ-NOTE
Copy link
Contributor

@JZZ-NOTE JZZ-NOTE commented Nov 26, 2021

PR types

Bug fixes

PR changes

Others

Describe

更新剪裁逻辑:
在以下三种情况,op 会被保留下来:

  1. op 是 target,函数 IsTarget 判断
  2. op 有 dependent outputs,即 op 在 feed 和 target 的通路上,函数 HasDependentOutputVar 判断
  3. 除了以上两种情况以外,涉及到 subblock 的 op 需要特殊处理。如果 op 有 subblock 或者在 subblock 中,并且 op 的 output vars 中有 feed vars,这样的 op 也需要保留下来。函数 IsSubBlockDependent 判断
@paddle-bot-old
Copy link

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

@JZZ-NOTE JZZ-NOTE force-pushed the fix_save_inference_model_conditional_op branch from e55cee3 to be15b3f Compare November 26, 2021 13:47
Copy link
Contributor

@jiweibo jiweibo left a comment

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo merged commit fd41456 into PaddlePaddle:develop Nov 27, 2021
Zjq9409 pushed a commit to Zjq9409/Paddle that referenced this pull request Dec 10, 2021
JZZ-NOTE added a commit to JZZ-NOTE/Paddle that referenced this pull request Jan 6, 2022
@JZZ-NOTE JZZ-NOTE deleted the fix_save_inference_model_conditional_op branch March 17, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants