Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
f8ec5f0f
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f8ec5f0f
编写于
7月 20, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
7月 20, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
just skip case of distribute on windows (#25581)
just skip case of distribute on windows
上级
bbe8f7bd
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
2 deletion
+6
-2
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+0
-2
python/paddle/fluid/tests/unittests/test_desc_clone.py
python/paddle/fluid/tests/unittests/test_desc_clone.py
+3
-0
python/paddle/fluid/tests/unittests/test_program_code.py
python/paddle/fluid/tests/unittests/test_program_code.py
+3
-0
未找到文件。
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
f8ec5f0f
...
@@ -59,11 +59,9 @@ if(WIN32)
...
@@ -59,11 +59,9 @@ if(WIN32)
# TODO: Fix these unittests failed on Windows
# TODO: Fix these unittests failed on Windows
LIST
(
REMOVE_ITEM TEST_OPS test_debugger
)
LIST
(
REMOVE_ITEM TEST_OPS test_debugger
)
list
(
REMOVE_ITEM TEST_OPS test_desc_clone
)
list
(
REMOVE_ITEM TEST_OPS test_fake_init_op
)
list
(
REMOVE_ITEM TEST_OPS test_fake_init_op
)
list
(
REMOVE_ITEM TEST_OPS test_merge_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_merge_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_split_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_split_ids_op
)
list
(
REMOVE_ITEM TEST_OPS test_program_code
)
LIST
(
REMOVE_ITEM TEST_OPS test_ref_by_trainer_id_op
)
LIST
(
REMOVE_ITEM TEST_OPS test_ref_by_trainer_id_op
)
LIST
(
REMOVE_ITEM TEST_OPS test_math_op_patch_var_base
)
LIST
(
REMOVE_ITEM TEST_OPS test_math_op_patch_var_base
)
endif
()
endif
()
...
...
python/paddle/fluid/tests/unittests/test_desc_clone.py
浏览文件 @
f8ec5f0f
...
@@ -18,6 +18,7 @@ import numpy as np
...
@@ -18,6 +18,7 @@ import numpy as np
import
argparse
import
argparse
import
time
import
time
import
math
import
math
import
sys
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
...
@@ -177,6 +178,8 @@ def program_equal(a, b):
...
@@ -177,6 +178,8 @@ def program_equal(a, b):
class
TestDistMnist
(
unittest
.
TestCase
):
class
TestDistMnist
(
unittest
.
TestCase
):
@
unittest
.
skipIf
(
sys
.
platform
==
"win32"
,
"Windows does not support distribution"
)
def
test_desc_clone
(
self
):
def
test_desc_clone
(
self
):
get_model
(
batch_size
=
20
)
get_model
(
batch_size
=
20
)
...
...
python/paddle/fluid/tests/unittests/test_program_code.py
浏览文件 @
f8ec5f0f
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
import
os
import
os
import
time
import
time
import
unittest
import
unittest
import
sys
from
multiprocessing
import
Process
from
multiprocessing
import
Process
import
signal
import
signal
...
@@ -29,6 +30,8 @@ import paddle.fluid.layers.ops as ops
...
@@ -29,6 +30,8 @@ import paddle.fluid.layers.ops as ops
class
TestProgram2Code
(
unittest
.
TestCase
):
class
TestProgram2Code
(
unittest
.
TestCase
):
@
unittest
.
skipIf
(
sys
.
platform
==
"win32"
,
"Windows does not support distribution"
)
def
test_print
(
self
):
def
test_print
(
self
):
place
=
fluid
.
CPUPlace
()
place
=
fluid
.
CPUPlace
()
self
.
init_serv
(
place
)
self
.
init_serv
(
place
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录