From 0e9b66a03bfb9b2343e136154cfc297bbe51769e Mon Sep 17 00:00:00 2001 From: liuyu Date: Mon, 9 Nov 2020 17:03:04 +0800 Subject: [PATCH] supplement path modeify for windows --- mindspore/lite/tools/converter/converter_flags.cc | 5 +++++ 1 file changed, 5 insertions(+) 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;