From 7bd2172c6e81eab02134a8f6301eeba71654b034 Mon Sep 17 00:00:00 2001 From: liuwenhao4 Date: Thu, 3 Sep 2020 14:27:50 +0800 Subject: [PATCH] Fix some tiny bugs for converter in windows enviroment --- build.bat | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.bat b/build.bat index f2b42c0654..1a037dad52 100644 --- a/build.bat +++ b/build.bat @@ -90,9 +90,9 @@ GOTO:EOF :gene_protobuf IF NOT DEFINED MSLIBS_CACHE_PATH ( - cd %BASEPATH%/build/mindspore/_deps/protobuf-src/_build + cd /d %BASEPATH%/build/mindspore/_deps/protobuf-src/_build ) ELSE ( - cd %MSLIBS_CACHE_PATH%/protobuf_*/bin + cd /d %MSLIBS_CACHE_PATH%/protobuf_*/bin ) SET PROTO_SRC_DIR=%BASEPATH%/mindspore/lite/tools/converter/parser/caffe @@ -100,14 +100,14 @@ GOTO:EOF SET PROTO_SRC_DIR=%BASEPATH%/mindspore/lite/tools/converter/parser/onnx protoc "%PROTO_SRC_DIR%/*.proto" --proto_path="%PROTO_SRC_DIR%" --cpp_out="%PROTO_SRC_DIR%" - cd %BUILD_PATH%/mindspore + cd /d %BUILD_PATH%/mindspore GOTO:EOF :gene_flatbuffer IF NOT DEFINED MSLIBS_CACHE_PATH ( - cd %BASEPATH%/build/mindspore/_deps/flatbuffers-src/_build + cd /d %BASEPATH%/build/mindspore/_deps/flatbuffers-src/_build ) ELSE ( - cd %MSLIBS_CACHE_PATH%/flatbuffers_*/bin + cd /d %MSLIBS_CACHE_PATH%/flatbuffers_*/bin ) SET FLAT_DIR=%BASEPATH%/mindspore/lite/schema @@ -116,7 +116,7 @@ GOTO:EOF SET FLAT_DIR=%BASEPATH%/mindspore/lite/tools/converter/parser/tflite flatc -c -b --reflect-types --gen-mutable --reflect-names --gen-object-api -o "%FLAT_DIR%" "%FLAT_DIR%/*.fbs" - cd %BUILD_PATH%/mindspore + cd /d %BUILD_PATH%/mindspore GOTO:EOF :run_fail