游雁
2023-05-10 38e7189549c3f9a5343e68d35da88a9a95f412cc
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