supplement path modeify for windows

pull/8366/head
liuyu 4 years ago
parent c88ed51c99
commit 0e9b66a03b

@ -17,6 +17,7 @@
#include "tools/converter/converter_flags.h"
#include <regex>
#include <string>
#include <algorithm>
#include "ir/dtype/type_id.h"
namespace mindspore {
@ -78,6 +79,10 @@ int Flags::Init(int argc, const char **argv) {
return RET_INPUT_PARAM_INVALID;
}
#ifdef _WIN32
replace(this->outputFile.begin(), this->outputFile.end(), '/', '\\');
#endif
if (this->fmkIn.empty()) {
std::cerr << "INPUT MISSING: fmk is necessary";
return RET_INPUT_PARAM_INVALID;

Loading…
Cancel
Save