[Feature] Enhance inplace addto strategy for gradient accumulation in static graph (#27112)
* support use add instead of sum to do gradient accumulation * add inplace addto pass * add grad_add op and inplace addto pass * remove debug code * code refine * fix bug when sereral sum ops inserts at same op_idx * fix Flags type * add addto attribute for conv3d * fix ut * code clean * fix type
Showing
想要评论请 注册 或 登录