From eeafd8091221d332649cd4df50f679e3b406f88c Mon Sep 17 00:00:00 2001 From: Hahn Anselm Date: Sun, 3 May 2020 20:15:11 +0200 Subject: [PATCH 1/2] Removing unreachable return --- tensorflow/lite/python/op_hint.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tensorflow/lite/python/op_hint.py b/tensorflow/lite/python/op_hint.py index 29683718016..c7f49bdf4b6 100644 --- a/tensorflow/lite/python/op_hint.py +++ b/tensorflow/lite/python/op_hint.py @@ -1168,7 +1168,6 @@ def _get_correct_mapping(original_index, nodes): return node_indices[-1] else: return original_index - return original_index def _convert_op_hints_to_stubs_helper( From 9cfeae817a1af13c53fec4e524c905132ce23c55 Mon Sep 17 00:00:00 2001 From: Hahn Anselm Date: Mon, 4 May 2020 19:35:41 +0200 Subject: [PATCH 2/2] Rearange the return --- tensorflow/lite/python/op_hint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tensorflow/lite/python/op_hint.py b/tensorflow/lite/python/op_hint.py index c7f49bdf4b6..159fcaa2bf3 100644 --- a/tensorflow/lite/python/op_hint.py +++ b/tensorflow/lite/python/op_hint.py @@ -1166,8 +1166,7 @@ def _get_correct_mapping(original_index, nodes): node_indices = nodes.keys() node_indices = sorted(node_indices) return node_indices[-1] - else: - return original_index + return original_index def _convert_op_hints_to_stubs_helper(