Skip to content

Commit

Permalink
Merge pull request #180 from lifengcai/master
Browse files Browse the repository at this point in the history
fix list mnn models bug on Windows platform
  • Loading branch information
jxt1234 committed Jul 25, 2019
2 parents 521a664 + 933f8bc commit 28245fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/benchmark.cpp
Expand Up @@ -54,7 +54,8 @@ std::vector<Model> findModelFiles(const char* dir) {
#if defined(_MSC_VER)
WIN32_FIND_DATA ffd;
HANDLE hFind = INVALID_HANDLE_VALUE;
hFind = FindFirstFile(dir, &ffd);
std::string mnn_model_pattern = std::string(dir) + "\\*.mnn";
hFind = FindFirstFile(mnn_model_pattern.c_str(), &ffd);
if (INVALID_HANDLE_VALUE == hFind) {
std::cout << "open " << dir << " failed: " << strerror(errno) << std::endl;
return models;
Expand Down

0 comments on commit 28245fc

Please sign in to comment.