trevor-m opened a new pull request #7700: URL: https://github.com/apache/tvm/pull/7700
When return_indices is False, the values of all boxes, scores must be set to -1 when they are invalid. The current code was not doing this, resulting in uninitialized memory being returned in the op output. Example output before fix, showing how output is incorrect for first inference and then is still incorrect but with different random output for second inference (due to unitialized memory being used). The input data is the same for all executions. ``` mx top 10 score [-1. -1. -1. -1. -1. -1. -1. -1. -1. -1.] tvm top 10 score [0. 0. 0. ... 0. 0. 0.] tvm top 10 score [1.0032198 1.0016742 1.0015179 ... 1.0053984 1.0051595 1.0052176] ``` With fix ``` mx top 10 score [-1. -1. -1. -1. -1. -1. -1. -1. -1. -1.] tvm top 10 score [-1. -1. -1. ... -1. -1. -1.] tvm top 10 score [-1. -1. -1. ... -1. -1. -1.] ``` -- 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: [email protected]
