Fix recurrent op not update grade issue (#18581)
* Fix recurrent op fails For the variable used in outter block, copy sub block's grad variable to outter block test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com> * Fix unicode error test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com> * Refine test code test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com> * Fix seq2seq case fails test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com> * remove unreasonable code. test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com> * Refine code according to comment test=develop Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com>
Showing
想要评论请 注册 或 登录