From 087290560351d1b9ce5155e060fac06b6b45e969 Mon Sep 17 00:00:00 2001 From: qili93 Date: Wed, 3 Jun 2020 09:04:40 +0000 Subject: [PATCH] fix code style, test=develop --- x2paddle/op_mapper/tf_op_mapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x2paddle/op_mapper/tf_op_mapper.py b/x2paddle/op_mapper/tf_op_mapper.py index 757e6b4..67443bf 100644 --- a/x2paddle/op_mapper/tf_op_mapper.py +++ b/x2paddle/op_mapper/tf_op_mapper.py @@ -85,7 +85,8 @@ class TFOpMapper(OpMapper): not_placeholder = list() for name in self.graph.input_nodes: - if self.graph.get_node(name).layer_type != "Placeholder" and self.graph.get_node(name).layer_type != "OneShotIterator": + if self.graph.get_node(name).layer_type != "Placeholder" + and self.graph.get_node(name).layer_type != "OneShotIterator": not_placeholder.append(name) for name in not_placeholder: idx = self.graph.input_nodes.index(name) -- GitLab