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

Add ConditionalBlockGradInferVarType for cond_op #39585

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

Aurelius84
Copy link
Contributor

@Aurelius84 Aurelius84 commented Feb 15, 2022

PR types

Bug fixes

PR changes

OPs

Describe

修复了Cond_Grad_op当Input包含LoDTensorArray类型,且Input@GRAD存在时,编译期组网报错的问题。由于之前缺失了ConditionalBlockGradInferVarType,在backward.py的append_backward_vars时会默认标记Input@GRAD的所有类型均为Tensor类型,即会错误地把LoDTensorArray类型Variable变成Tensor,导致下游Op.infer_var_type时报错。

@paddle-bot-old
Copy link

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

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 merged commit ff7e359 into PaddlePaddle:develop Feb 16, 2022
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