Skip to content

Commit

Permalink
get_top_results works on a copy of output (#7327)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBoblest committed Jan 22, 2021
1 parent 790344c commit 6787d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/driver/tvmc/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def get_top_results(outputs, max_results):
The first row is the indices and the second is the values.
"""
output = outputs["output_0"]
output = np.copy(outputs["output_0"])
sorted_labels = output.argsort()[0][-max_results:][::-1]
output.sort()
sorted_values = output[0][-max_results:][::-1]
Expand Down

0 comments on commit 6787d74

Please sign in to comment.