Skip to content

Commit b75d5bf

Browse files
committed
fix pylint
1 parent 4fabf2d commit b75d5bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tf2onnx/optimizer/const_fold_optimizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def _fold_node(self, node, graph):
6666
const_val_after_trans = process_func(node, graph)
6767
self._replace_node_with_const(node, graph, const_val_after_trans)
6868
return True
69-
else:
70-
self.log.warning("need to add function to fold op %s whose op_type is %s", node.name, node.type)
69+
self.log.warning("need to add function to fold op %s whose op_type is %s", node.name, node.type)
7170
return False
7271

7372
@staticmethod

0 commit comments

Comments
 (0)