lyblsgo
2023-05-10 659e18be114a3a7ad9e16bd7197c7451602e5d8a
add functions
2个文件已修改
10 ■■■■■ 已修改文件
funasr/runtime/onnxruntime/src/util.cpp 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/util.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/util.cpp
@@ -180,4 +180,13 @@
    }
}
bool is_target_file(const std::string& filename, const std::string target) {
    std::size_t pos = filename.find_last_of(".");
    if (pos == std::string::npos) {
        return false;
    }
    std::string extension = filename.substr(pos + 1);
    return (extension == target);
}
} // namespace funasr
funasr/runtime/onnxruntime/src/util.h
@@ -25,6 +25,7 @@
extern void Glu(Tensor<float> *din, Tensor<float> *dout);
string PathAppend(const string &p1, const string &p2);
bool is_target_file(const std::string& filename, const std::string target);
} // namespace funasr
#endif