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 18:09:09 UTC

[GitHub] [incubator-tvm] hogepodge opened a new pull request #6867: Fix bug in processing script

hogepodge opened a new pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867


   The argsort command returns a new array that is the sorted
   index rather than a new sorted value array. This patch
   stores the sorted index in a new variable and uses it to
   reference the predicted values.
   
   Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread.
   


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
hogepodge commented on pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867#issuecomment-723318753


   Thanks, updated


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
comaniac merged pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867


   


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
comaniac commented on pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867#issuecomment-723392973


   Thanks @hogepodge 


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
hogepodge commented on pull request #6867:
URL: https://github.com/apache/incubator-tvm/pull/6867#issuecomment-723224164


   @mbrookhart 


----------------------------------------------------------------
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