未验证 提交 fb5fab07 编写于 作者: 张春乔 提交者: GitHub

Update sharding_optimizer.py (#53164)

上级 6a8d98e0
...@@ -755,9 +755,6 @@ class ShardingOptimizer(MetaOptimizerBase): ...@@ -755,9 +755,6 @@ class ShardingOptimizer(MetaOptimizerBase):
sync=False, sync=False,
) )
if core.is_compiled_with_custom_device('npu'):
return
# GPU # GPU
for pair in self.pipeline_pair: for pair in self.pipeline_pair:
pair_key = pair[0] * 1000 + pair[1] pair_key = pair[0] * 1000 + pair[1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册