Fix some tiny bugs for converter in windows enviroment

This commit is contained in:
liuwenhao4 2020-09-03 14:27:50 +08:00
parent 8896b88f27
commit 7bd2172c6e
1 changed files with 6 additions and 6 deletions

View File

@ -90,9 +90,9 @@ GOTO:EOF
:gene_protobuf :gene_protobuf
IF NOT DEFINED MSLIBS_CACHE_PATH ( IF NOT DEFINED MSLIBS_CACHE_PATH (
cd %BASEPATH%/build/mindspore/_deps/protobuf-src/_build cd /d %BASEPATH%/build/mindspore/_deps/protobuf-src/_build
) ELSE ( ) 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 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 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%" 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 GOTO:EOF
:gene_flatbuffer :gene_flatbuffer
IF NOT DEFINED MSLIBS_CACHE_PATH ( IF NOT DEFINED MSLIBS_CACHE_PATH (
cd %BASEPATH%/build/mindspore/_deps/flatbuffers-src/_build cd /d %BASEPATH%/build/mindspore/_deps/flatbuffers-src/_build
) ELSE ( ) ELSE (
cd %MSLIBS_CACHE_PATH%/flatbuffers_*/bin cd /d %MSLIBS_CACHE_PATH%/flatbuffers_*/bin
) )
SET FLAT_DIR=%BASEPATH%/mindspore/lite/schema SET FLAT_DIR=%BASEPATH%/mindspore/lite/schema
@ -116,7 +116,7 @@ GOTO:EOF
SET FLAT_DIR=%BASEPATH%/mindspore/lite/tools/converter/parser/tflite 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" 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 GOTO:EOF
:run_fail :run_fail