Enforce drop_empty_grad=false When the input of an op is duplicable.
For input argument with a list of variables, drop_empty_grad is not allowed because it makes the correspondence bewteen a variable and its gradient ambiguous. Use REGISTER_OP_EX to register the op or call InputGrad(?,false) in GradOpDescMaker.
Showing
想要评论请 注册 或 登录