Skip to content

Commit

Permalink
Prevent copying extra keys outside of model_info
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Nov 9, 2023
1 parent aaca4de commit d258351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model_api/python/openvino/model_api/models/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ def addOrFindSoftmaxAndTopkOutputs(inference_adapter, topk, output_raw_scores):

if "model_info" in source_rt_info:
source_rt_info = source_rt_info["model_info"]
for k in source_rt_info:
inference_adapter.model.set_rt_info(source_rt_info[k], ["model_info", k])
for k in source_rt_info:
inference_adapter.model.set_rt_info(source_rt_info[k], ["model_info", k])

# manually set output tensors name for created topK node
inference_adapter.model.outputs[0].tensor.set_names({"scores"})
Expand Down

0 comments on commit d258351

Please sign in to comment.