funasr/runtime/onnxruntime/src/commonfunc.h
@@ -1,5 +1,5 @@ #pragma once #include <algorithm> typedef struct { std::string msg; @@ -49,3 +49,8 @@ } } } template <class ForwardIterator> inline static size_t argmax(ForwardIterator first, ForwardIterator last) { return std::distance(first, std::max_element(first, last)); }