未验证 提交 7dbf5f12 编写于 作者: T tangwei12 提交者: GitHub

Update distribute_transpiler.py

上级 c0a95bb2
...@@ -712,7 +712,7 @@ class DistributeTranspiler(object): ...@@ -712,7 +712,7 @@ class DistributeTranspiler(object):
slice_vars_and_attrs = [] slice_vars_and_attrs = []
block_suffix = "block" block_suffix = "block"
for param in self.param_grad_ep_mapping[endpoint]["params"]: for param in self.param_grad_ep_mapping[endpoint]["params"]:
orig_var_name, block_name, _ = self._get_varname_parts(param) orig_var_name, block_name, _ = self._get_varname_parts(param.name)
if not block_name: if not block_name:
continue continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册