代码拉取完成,页面将自动刷新
2733
Fix bug in elementwise_mul/div_grad when inplace strategy
已合并
PR types
Bug fixes
PR changes
OPs
Describe
Fix bug in elementwise_mul/di _grad when inplace strategy:
1)For samedims cases,just do it directly
2)Because of Ternary compute,the inplace strategy doesn't effect the result
Example:
In some models,there is x=x*mask,where the shape of x and mask is the same and mask.stop_gradients is True.
In this case, the x_grad woule be wrong