Skip to content

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

3 participants