Browse Source

pnnx fix filename base

tags/20240102
nihuini 2 years ago
parent
commit
c2ccbf851d
No known key found for this signature in database GPG Key ID: 98FD8F4EBC3E5DB8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tools/pnnx/src/main.cpp

+ 1
- 1
tools/pnnx/src/main.cpp View File

@@ -61,7 +61,7 @@ static std::string get_basename(const std::string& path)
filename = path;
}

std::string base = filename.substr(0, path.find_last_of('.'));
std::string base = filename.substr(0, filename.find_last_of('.'));
// sanitize -
std::replace(base.begin(), base.end(), '-', '_');
return dirpath + base;


Loading…
Cancel
Save