llama2c : fix basename on Windows

This commit is contained in:
Cebtenzzre 2023-08-30 18:22:52 -04:00
parent a8c96f2cac
commit 634d7272b8

View file

@ -902,7 +902,7 @@ bool params_parse(int argc, char ** argv, struct train_params * params) {
}
std::string basename(const std::string &path) {
size_t pos = path.find_last_of("/");
size_t pos = path.find_last_of("/\\");
if (pos == std::string::npos) {
return path;
}