You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/11/06 19:24:02 UTC

[GitHub] [incubator-tvm] comaniac commented on pull request #6867: Fix bug in processing script

comaniac commented on pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867#issuecomment-723256729


   It's a bit confusing to assign index to `scores`. How about something like
   
   ```python
   ranks = np.argsort(scores)[::-1]
   for rank in ranks[0:5]:
       print("class='%s' with probability=%f" % (labels[rank], scores[rank]))
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org