plaidml / openvino

OpenVINO™ Toolkit - Deep Learning Deployment Toolkit repository
https://docs.openvinotoolkit.org/latest/index.html
Apache License 2.0
0 stars 1 forks source link

use stable_sort in DetectionOutput reference implementation #147

Closed ZhibinLiIntel closed 3 years ago

ZhibinLiIntel commented 3 years ago

This change is very similar to #139. In short, std::sort is used and it does not guarantee to be stable. Changed to std::stable_sort instead.

Note: The std::sort at line 506 is inside of function mxNetNms and it's not yet implemented in https://github.com/plaidml/plaidml/pull/1741. Just change it along with the other std::sort in advance.