From 810439a993b20c649fa19a30d95369b25395f016 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Tue, 8 Jan 2019 23:42:13 +0800 Subject: [PATCH] fix style test=develop --- python/paddle/fluid/transpiler/distribute_transpiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 8d11db376..ea5a4cf7c 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -1280,8 +1280,9 @@ class DistributeTranspiler(object): # create table param and grad var in pserver program # create table optimize block in pserver program table_opt_op = [ - op for op in self.optimize_ops if 'Param' in op.input_names and - op.input("Param")[0] == self.table_name + op for op in self.optimize_ops + if 'Param' in op.input_names and op.input("Param")[0] == + self.table_name ][0] origin_param_var = self.origin_program.global_block().vars[ -- GitLab