Skip to content

Commit ffd5a83

Browse files
committed
fix code style
1 parent 55edfca commit ffd5a83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/paddle/fluid/transpiler/distribute_transpiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,8 +1237,9 @@ def _create_table_optimize_block(self, pserver_index, pserver_program,
12371237
# create table param and grad var in pserver program
12381238
# create table optimize block in pserver program
12391239
table_opt_op = [
1240-
op for op in self.optimize_ops if 'Param' in op.input_names and
1241-
op.input("Param")[0] == self.table_name
1240+
op for op in self.optimize_ops
1241+
if 'Param' in op.input_names and op.input("Param")[0] ==
1242+
self.table_name
12421243
][0]
12431244

12441245
origin_param_var = self.origin_program.global_block().vars[

0 commit comments

Comments
 (0)