| | |
| | | #pragma once |
| | | |
| | | |
| | | #include <algorithm> |
| | | typedef struct |
| | | { |
| | | std::string msg; |
| | | |
| | | }RPASR_RECOG_RESULT; |
| | | float snippet_time; |
| | | }FUNASR_RECOG_RESULT; |
| | | |
| | | |
| | | #ifdef _WIN32 |
| | | #include <codecvt> |
| | | |
| | | |
| | | |
| | | inline std::wstring string2wstring(const std::string& str, const std::string& locale) |
| | | { |
| | |
| | | } |
| | | |
| | | #endif |
| | | |
| | | |
| | | |
| | | inline void getInputName(Ort::Session* session, string& inputName,int nIndex=0) { |
| | | size_t numInputNodes = session->GetInputCount(); |
| | |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | template <class ForwardIterator> |
| | | inline static size_t argmax(ForwardIterator first, ForwardIterator last) { |
| | | return std::distance(first, std::max_element(first, last)); |
| | | } |