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.
This change is very similar to #139. In short,
std::sort
is used and it does not guarantee to be stable. Changed tostd::stable_sort
instead.Note: The
std::sort
at line 506 is inside of functionmxNetNms
and it's not yet implemented in https://github.com/plaidml/plaidml/pull/1741. Just change it along with the otherstd::sort
in advance.