Skip to content

Commit f3bbd3b

Browse files
committed
code style format
test=develop
1 parent 2d461cb commit f3bbd3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python/paddle/fluid/transpiler/distribute_transpiler.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,10 +1065,12 @@ def _replace_lookup_table_op_with_prefetch(self, program,
10651065
continue_search_lookup_table_op = False
10661066
all_ops = program.global_block().ops
10671067
for op in all_ops:
1068-
if op.type == LOOKUP_TABLE_TYPE and self.table_name == op.input("W")[0]:
1068+
if op.type == LOOKUP_TABLE_TYPE and self.table_name == op.input(
1069+
"W")[0]:
10691070
if not op.attr('is_distributed'):
1070-
raise RuntimeError("lookup_table_op that lookup an distributed embedding table"
1071-
"should set is_distributed to true")
1071+
raise RuntimeError(
1072+
"lookup_table_op that lookup an distributed embedding table"
1073+
"should set is_distributed to true")
10721074
continue_search_lookup_table_op = True
10731075

10741076
lookup_table_op_index = lookup_table_op_index if lookup_table_op_index != -1 else list(

0 commit comments

Comments
 (0)