From 74e16d02b945035f669081b22db45c2f6b5f41b0 Mon Sep 17 00:00:00 2001 From: ibadr Date: Thu, 12 Nov 2020 12:54:07 +0200 Subject: [PATCH] Add "krs_" prefix for short names --- onnx2keras/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnx2keras/converter.py b/onnx2keras/converter.py index 616295cf..ba28f1be 100644 --- a/onnx2keras/converter.py +++ b/onnx2keras/converter.py @@ -127,7 +127,7 @@ def onnx_to_keras(onnx_model, input_names, keras_names = [] for output_index, output in enumerate(node.output): if name_policy == 'short': - keras_name = keras_name_i = str(output)[:8] + keras_name = keras_name_i = "krs_"+str(output)[:8] suffix = 1 while keras_name_i in node_names: keras_name_i = keras_name + '_' + str(suffix)