嘉渊
2023-05-17 334dec5d184b34358e5703da6bda87ed3af1fea6
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