提交 834aedc7 编写于 作者: Q qiaolongfei

fix name bug

上级 585c42ea
......@@ -60,7 +60,9 @@ def rename_model(model_json):
# rename
all_nodes = model_json['node']
for idx in range(len(all_nodes)):
name = all_nodes[idx]['name']
name = ""
if "name" in all_nodes[idx]:
name = all_nodes[idx]['name']
op_type = all_nodes[idx]['opType']
new_name = str(idx) + '\n' + str(op_type)
if name != "":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册