Browse Source

!5694 Fix some tiny bugs for converter in windows enviroment

Merge pull request !5694 from liuwenhao/master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
56207e0e65
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      build.bat

+ 6
- 6
build.bat View File

@@ -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


Loading…
Cancel
Save