Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
9c99d379
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
9c99d379
编写于
1月 06, 2021
作者:
Z
Zhou Wei
提交者:
GitHub
1月 06, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix unittest failed on windows (#29837)
上级
69839f8a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
27 deletion
+22
-27
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+6
-3
python/paddle/fluid/tests/unittests/test_pass_builder.py
python/paddle/fluid/tests/unittests/test_pass_builder.py
+4
-2
tools/windows/run_unittests.sh
tools/windows/run_unittests.sh
+12
-22
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
9c99d379
...
...
@@ -31,7 +31,8 @@ wmic process where name="op_function_generator.exe" call terminate
rem ------initialize common variable------
if
not
defined
BRANCH
set
BRANCH
=
develop
if
not
defined
TENSORRT_ROOT
set
TENSORRT_ROOT
=
"C:/TensorRT-5.1.5.0"
if
not
defined
WITH_TENSORRT
set
WITH_TENSORRT
=
ON
if
not
defined
TENSORRT_ROOT
set
TENSORRT_ROOT
=
"D:/TensorRT"
if
not
defined
WITH_MKL
set
WITH_MKL
=
ON
if
not
defined
WITH_AVX
set
WITH_AVX
=
ON
if
not
defined
WITH_TESTING
set
WITH_TESTING
=
ON
...
...
@@ -238,13 +239,15 @@ echo cmake .. -G "Visual Studio 14 2015 Win64" -DWITH_AVX=%WITH_AVX% -DWITH_GPU=
-DWITH
_TESTING
=
%WITH_TESTING%
-DWITH
_PYTHON
=
%WITH_PYTHON%
-DON
_INFER
=
%ON_INFER%
^
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
-DINFERENCE
_DEMO_INSTALL_DIR
=
%INFERENCE_DEMO_INSTALL_DIR%
-DWITH
_STATIC_LIB
=
%WITH_STATIC_LIB%
^
-DTENSORRT
_ROOT
=
%TENSORRT_ROOT%
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DWITH
_TENSORRT
=
%WITH_TENSORRT%
-DTENSORRT
_ROOT
=
%TENSORRT_ROOT%
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
cmake
..
-G
"Visual Studio 14 2015 Win64"
-DWITH
_AVX
=
%WITH_AVX%
-DWITH
_GPU
=
%WITH_GPU%
-DWITH
_MKL
=
%WITH_MKL%
^
-DWITH
_TESTING
=
%WITH_TESTING%
-DWITH
_PYTHON
=
%WITH_PYTHON%
-DON
_INFER
=
%ON_INFER%
^
-DWITH
_INFERENCE_API_TEST
=
%WITH_INFERENCE_API_TEST%
-DTHIRD
_PARTY_PATH
=
%THIRD_PARTY_PATH%
^
-DINFERENCE
_DEMO_INSTALL_DIR
=
%INFERENCE_DEMO_INSTALL_DIR%
-DWITH
_STATIC_LIB
=
%WITH_STATIC_LIB%
^
-DTENSORRT
_ROOT
=
%TENSORRT_ROOT%
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
-DWITH
_TENSORRT
=
%WITH_TENSORRT%
-DTENSORRT
_ROOT
=
%TENSORRT_ROOT%
-DMSVC
_STATIC_CRT
=
%MSVC_STATIC_CRT%
^
-DWITH
_UNITY_BUILD
=
%WITH_UNITY_BUILD%
goto
:eof
:cmake
_error
...
...
python/paddle/fluid/tests/unittests/test_pass_builder.py
浏览文件 @
9c99d379
...
...
@@ -98,13 +98,15 @@ class TestPassBuilder(unittest.TestCase):
pass_builder
.
remove_pass
(
len
(
pass_builder
.
all_passes
())
-
1
)
self
.
assertEqual
(
origin_len
+
1
,
len
(
pass_builder
.
all_passes
()))
viz_pass
.
set
(
"graph_viz_path"
,
"/tmp/test_viz_pass"
)
current_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
graph_viz_path
=
current_path
+
os
.
sep
+
'tmp'
+
os
.
sep
+
'test_viz_pass'
viz_pass
.
set
(
"graph_viz_path"
,
graph_viz_path
)
self
.
check_network_convergence
(
use_cuda
=
core
.
is_compiled_with_cuda
(),
build_strategy
=
build_strategy
)
try
:
os
.
stat
(
"/tmp/test_viz_pass"
)
os
.
stat
(
graph_viz_path
)
except
os
.
error
:
self
.
assertFalse
(
True
)
...
...
tools/windows/run_unittests.sh
浏览文件 @
9c99d379
...
...
@@ -38,6 +38,18 @@ fi
# /*==================Fixed Disabled Windows unittests==============================*/
# TODO: fix these unittest that is bound to fail
diable_wingpu_test
=
"^test_analysis_predictor
$|
\
^test_gradient_clip
$|
\
^test_translated_layer
$|
\
^test_imperative_resnet
$|
\
^test_imperative_resnet_sorted_gradient
$|
\
^test_model
$|
\
^test_decoupled_py_reader
$|
\
^test_generator_dataloader
$|
\
^test_ir_memory_optimize_pass
$|
\
^test_multiprocess_dataloader_iterable_dataset_static
$|
\
^test_parallel_executor_pg
$|
\
^test_py_reader_using_executor
$|
\
^test_weight_decay
$|
\
^test_parallel_executor_feed_persistable_var
$|
\
^test_parallel_executor_fetch_isolated_var
$|
\
^test_parallel_executor_inference_feed_partial_data
$|
\
...
...
@@ -51,32 +63,20 @@ diable_wingpu_test="^test_analysis_predictor$|\
^test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass
$|
\
^test_dataloader_keep_order
$|
\
^test_dataloader_unkeep_order
$|
\
^test_model
$|
\
^test_add_reader_dependency
$|
\
^test_cholesky_op
$|
\
^test_dataloader_early_reset
$|
\
^test_decoupled_py_reader
$|
\
^test_decoupled_py_reader_data_check
$|
\
^test_eager_deletion_delete_vars
$|
\
^test_eager_deletion_while_op
$|
\
^test_fleet_base_single
$|
\
^test_fuse_elewise_add_act_pass
$|
\
^test_fuse_optimizer_pass
$|
\
^test_generator_dataloader
$|
\
^test_ir_memory_optimize_ifelse_op
$|
\
^test_lr_scheduler
$|
\
^test_multiprocess_dataloader_iterable_dataset_dynamic
$|
\
^test_multiprocess_dataloader_iterable_dataset_static
$|
\
^test_parallel_dygraph_sync_batch_norm
$|
\
^test_parallel_executor_drop_scope
$|
\
^test_parallel_executor_dry_run
$|
\
^test_partial_eager_deletion_transformer
$|
\
^test_rnn_nets
$|
\
^test_prune
$|
\
^test_py_reader_combination
$|
\
^test_py_reader_pin_memory
$|
\
^test_py_reader_push_pop
$|
\
^test_py_reader_using_executor
$|
\
^test_reader_reset
$|
\
^test_update_loss_scaling_op
$|
\
^test_imperative_se_resnext
$|
\
...
...
@@ -86,17 +86,7 @@ diable_wingpu_test="^test_analysis_predictor$|\
^test_gru_rnn_op
$|
\
^test_rnn_op
$|
\
^test_simple_rnn_op
$|
\
^test_pass_builder
$|
\
^test_lstm_cudnn_op
$|
\
^test_inplace_addto_strategy
$|
\
^test_ir_inplace_pass
$|
\
^test_ir_memory_optimize_pass
$|
\
^test_memory_reuse_exclude_feed_var
$|
\
^test_mix_precision_all_reduce_fuse
$|
\
^test_parallel_executor_pg
$|
\
^test_print_op
$|
\
^test_py_func_op
$|
\
^test_weight_decay
$|
\
^test_conv2d_int8_mkldnn_op
$|
\
^test_crypto
$|
\
^test_program_prune_backward
$|
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录