未验证 提交 30391828 编写于 作者: J JZ-LIANG 提交者: GitHub

bugfix for paddlescience (#45222)

上级 520b0546
......@@ -143,7 +143,8 @@ class DataParallelOptimizationPass(PassBase):
def _could_be_prune(self):
return self._support_rescale_grad or self._all_dp_groups_same_degree()
return self.dist_context._gradient_scale and (
self._support_rescale_grad or self._all_dp_groups_same_degree())
def _all_dp_groups_same_degree(self):
return len(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册