提交 2409c61c 编写于 作者: Z zenghsh3

refine code

上级 84806a5e
......@@ -79,7 +79,6 @@ class DQNModel(object):
policy_vars.sort(key=lambda x: x.name)
target_vars.sort(key=lambda x: x.name)
self._sync_program = fluid.Program()
with fluid.program_guard(self._sync_program):
sync_ops = []
for i, var in enumerate(policy_vars):
......
......@@ -86,7 +86,6 @@ class DoubleDQNModel(object):
policy_vars.sort(key=lambda x: x.name)
target_vars.sort(key=lambda x: x.name)
self._sync_program = fluid.Program()
with fluid.program_guard(self._sync_program):
sync_ops = []
for i, var in enumerate(policy_vars):
......
......@@ -79,7 +79,6 @@ class DuelingDQNModel(object):
policy_vars.sort(key=lambda x: x.name)
target_vars.sort(key=lambda x: x.name)
self._sync_program = fluid.Program()
with fluid.program_guard(self._sync_program):
sync_ops = []
for i, var in enumerate(policy_vars):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册