From f3bbd3b43a7ada2acc9e1053c63089c38f5aad85 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 1 Nov 2018 16:04:13 +0800 Subject: [PATCH] code style format test=develop --- python/paddle/fluid/transpiler/distribute_transpiler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 5d32ca675a1..879a1eef174 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -1065,10 +1065,12 @@ to transpile() call.") continue_search_lookup_table_op = False all_ops = program.global_block().ops for op in all_ops: - if op.type == LOOKUP_TABLE_TYPE and self.table_name == op.input("W")[0]: + if op.type == LOOKUP_TABLE_TYPE and self.table_name == op.input( + "W")[0]: if not op.attr('is_distributed'): - raise RuntimeError("lookup_table_op that lookup an distributed embedding table" - "should set is_distributed to true") + raise RuntimeError( + "lookup_table_op that lookup an distributed embedding table" + "should set is_distributed to true") continue_search_lookup_table_op = True lookup_table_op_index = lookup_table_op_index if lookup_table_op_index != -1 else list( -- GitLab