yhliang
2023-05-11 1d1ef01b4e23630a99a3be7e9d1dce9550a793e9
funasr/runtime/onnxruntime/src/commonfunc.h
@@ -1,10 +1,18 @@
#pragma once 
#include <algorithm>
namespace funasr {
typedef struct
{
    std::string msg;
    float  snippet_time;
}FUNASR_RECOG_RESULT;
typedef struct
{
    std::vector<std::vector<int>>* segments;
    float  snippet_time;
}FUNASR_VAD_RESULT;
#ifdef _WIN32
@@ -52,3 +60,4 @@
inline static size_t Argmax(ForwardIterator first, ForwardIterator last) {
    return std::distance(first, std::max_element(first, last));
}
} // namespace funasr