未验证 提交 42a8767b 编写于 作者: B Bai Yifan 提交者: GitHub

fix parallel strategy redefine (#258)

上级 a07b5c20
...@@ -176,8 +176,6 @@ class DARTSearch(object): ...@@ -176,8 +176,6 @@ class DARTSearch(object):
""" """
if self.use_data_parallel:
strategy = fluid.dygraph.parallel.prepare_context()
model_parameters = [ model_parameters = [
p for p in self.model.parameters() p for p in self.model.parameters()
if p.name not in [a.name for a in self.model.arch_parameters()] if p.name not in [a.name for a in self.model.arch_parameters()]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册