提交 d640c6cf 编写于 作者: Q Qiao Longfei

fix pylint

上级 37f6b9ab
...@@ -1401,8 +1401,9 @@ class DistributeTranspiler(object): ...@@ -1401,8 +1401,9 @@ class DistributeTranspiler(object):
# create table param and grad var in pserver program # create table param and grad var in pserver program
# create table optimize block in pserver program # create table optimize block in pserver program
table_opt_op = [ table_opt_op = [
op for op in self.optimize_ops if 'Param' in op.input_names and op for op in self.optimize_ops
op.input("Param")[0] == self.table_name if 'Param' in op.input_names and op.input("Param")[0] ==
self.table_name
][0] ][0]
origin_param_var = self.origin_program.global_block().vars[ origin_param_var = self.origin_program.global_block().vars[
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册