diff --git a/mindspore/lite/tools/converter/converter_flags.cc b/mindspore/lite/tools/converter/converter_flags.cc index c40c1e8dd1..ab7a44d54a 100644 --- a/mindspore/lite/tools/converter/converter_flags.cc +++ b/mindspore/lite/tools/converter/converter_flags.cc @@ -17,6 +17,7 @@ #include "tools/converter/converter_flags.h" #include #include +#include #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;