Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
30b275f0
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
30b275f0
编写于
8月 23, 2022
作者:
S
Sing_chan
提交者:
GitHub
8月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add variable to decide whether test inference ut and demo (#45269)
上级
352ea63c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
7 deletion
+10
-7
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+10
-7
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
30b275f0
...
@@ -53,7 +53,7 @@ wmic process where name="cl.exe" call terminate 2>NUL
...
@@ -53,7 +53,7 @@ wmic process where name="cl.exe" call terminate 2>NUL
wmic
process
where
name
=
"lib.exe"
call
terminate
2
>
NUL
wmic
process
where
name
=
"lib.exe"
call
terminate
2
>
NUL
wmic
process
where
name
=
"python.exe"
call
terminate
2
>
NUL
wmic
process
where
name
=
"python.exe"
call
terminate
2
>
NUL
rem
------initialize common variable------
rem
variable to control building process
if
not
defined
GENERATOR
set
GENERATOR
=
"Visual Studio 15 2017 Win64"
if
not
defined
GENERATOR
set
GENERATOR
=
"Visual Studio 15 2017 Win64"
if
not
defined
WITH_TENSORRT
set
WITH_TENSORRT
=
ON
if
not
defined
WITH_TENSORRT
set
WITH_TENSORRT
=
ON
if
not
defined
TENSORRT_ROOT
set
TENSORRT_ROOT
=
D
:/TensorRT
if
not
defined
TENSORRT_ROOT
set
TENSORRT_ROOT
=
D
:/TensorRT
...
@@ -67,10 +67,15 @@ if not defined ON_INFER set ON_INFER=ON
...
@@ -67,10 +67,15 @@ if not defined ON_INFER set ON_INFER=ON
if
not
defined
WITH_ONNXRUNTIME
set
WITH_ONNXRUNTIME
=
OFF
if
not
defined
WITH_ONNXRUNTIME
set
WITH_ONNXRUNTIME
=
OFF
if
not
defined
WITH_INFERENCE_API_TEST
set
WITH_INFERENCE_API_TEST
=
ON
if
not
defined
WITH_INFERENCE_API_TEST
set
WITH_INFERENCE_API_TEST
=
ON
if
not
defined
WITH_STATIC_LIB
set
WITH_STATIC_LIB
=
ON
if
not
defined
WITH_STATIC_LIB
set
WITH_STATIC_LIB
=
ON
if
not
defined
WITH_UNITY_BUILD
set
WITH_UNITY_BUILD
=
OFF
if
not
defined
NEW_RELEASE_ALL
set
NEW_RELEASE_ALL
=
ON
if
not
defined
NEW_RELEASE_PYPI
set
NEW_RELEASE_PYPI
=
OFF
if
not
defined
NEW_RELEASE_JIT
set
NEW_RELEASE_JIT
=
OFF
rem variable to control pipeline process
if
not
defined
WITH_TPCACHE
set
WITH_TPCACHE
=
OFF
if
not
defined
WITH_TPCACHE
set
WITH_TPCACHE
=
OFF
if
not
defined
WITH_CACHE
set
WITH_CACHE
=
OFF
if
not
defined
WITH_CACHE
set
WITH_CACHE
=
OFF
if
not
defined
WITH_SCCACHE
set
WITH_SCCACHE
=
OFF
if
not
defined
WITH_SCCACHE
set
WITH_SCCACHE
=
OFF
if
not
defined
WITH_UNITY_BUILD
set
WITH_UNITY_BUILD
=
OFF
if
not
defined
INFERENCE_DEMO_INSTALL_DIR
set
INFERENCE_DEMO_INSTALL_DIR
=
%cache
_dir:\
=
/
%
/inference
_demo
if
not
defined
INFERENCE_DEMO_INSTALL_DIR
set
INFERENCE_DEMO_INSTALL_DIR
=
%cache
_dir:\
=
/
%
/inference
_demo
if
not
defined
LOG_LEVEL
set
LOG_LEVEL
=
normal
if
not
defined
LOG_LEVEL
set
LOG_LEVEL
=
normal
if
not
defined
PRECISION_TEST
set
PRECISION_TEST
=
OFF
if
not
defined
PRECISION_TEST
set
PRECISION_TEST
=
OFF
...
@@ -78,9 +83,7 @@ if not defined NIGHTLY_MODE set NIGHTLY_MODE=OFF
...
@@ -78,9 +83,7 @@ if not defined NIGHTLY_MODE set NIGHTLY_MODE=OFF
if
not
defined
retry_times
set
retry_times
=
1
if
not
defined
retry_times
set
retry_times
=
1
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
if
not
defined
PYTHON_ROOT
set
PYTHON_ROOT
=
C
:\Python37
if
not
defined
BUILD_DIR
set
BUILD_DIR
=
build
if
not
defined
BUILD_DIR
set
BUILD_DIR
=
build
if
not
defined
NEW_RELEASE_ALL
set
NEW_RELEASE_ALL
=
ON
if
not
defined
TEST_INFERENCE
set
TEST_INFERENCE
=
ON
if
not
defined
NEW_RELEASE_PYPI
set
NEW_RELEASE_PYPI
=
OFF
if
not
defined
NEW_RELEASE_JIT
set
NEW_RELEASE_JIT
=
OFF
set
task_name
=
%
1
set
task_name
=
%
1
set
UPLOAD_TP_FILE
=
OFF
set
UPLOAD_TP_FILE
=
OFF
...
@@ -308,9 +311,9 @@ if %errorlevel% NEQ 0 exit /b 1
...
@@ -308,9 +311,9 @@ if %errorlevel% NEQ 0 exit /b 1
call
:cmake
||
goto
cmake_error
call
:cmake
||
goto
cmake_error
call
:build
||
goto
build_error
call
:build
||
goto
build_error
call
:test
_inference
if
"
%TEST_INFERENCE%
"
==
"ON"
call
:test
_inference
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
call
:test
_inference_ut
if
"
%TEST_INFERENCE%
"
==
"ON"
call
:test
_inference_ut
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
call
:zip
_cc_file
||
goto
zip_cc_file_error
call
:zip
_cc_file
||
goto
zip_cc_file_error
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录