Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
6cfcbe05
P
Paddle
项目概览
Crayon鑫
/
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看板
未验证
提交
6cfcbe05
编写于
11月 26, 2019
作者:
R
ruri
提交者:
GitHub
11月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reduce interp op input size to pass CI, test=develop (#21341)
上级
45c1e7bb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
25 deletion
+25
-25
python/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
...n/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
+10
-10
python/paddle/fluid/tests/unittests/test_nearest_interp_op.py
...on/paddle/fluid/tests/unittests/test_nearest_interp_op.py
+9
-9
python/paddle/fluid/tests/unittests/test_trilinear_interp_op.py
.../paddle/fluid/tests/unittests/test_trilinear_interp_op.py
+6
-6
未找到文件。
python/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
浏览文件 @
6cfcbe05
...
...
@@ -178,9 +178,9 @@ class TestBilinearInterpCase2(TestBilinearInterpOp):
class
TestBilinearInterpCase3
(
TestBilinearInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'bilinear'
self
.
input_shape
=
[
1
,
1
,
128
,
64
]
self
.
input_shape
=
[
1
,
1
,
32
,
64
]
self
.
out_h
=
64
self
.
out_w
=
128
self
.
out_w
=
32
self
.
scale
=
0.
self
.
align_corners
=
True
self
.
align_mode
=
1
...
...
@@ -213,11 +213,11 @@ class TestBilinearInterpCase5(TestBilinearInterpOp):
class
TestBilinearInterpCase6
(
TestBilinearInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'bilinear'
self
.
input_shape
=
[
1
,
1
,
128
,
64
]
self
.
input_shape
=
[
1
,
1
,
32
,
64
]
self
.
out_h
=
64
self
.
out_w
=
128
self
.
out_w
=
32
self
.
scale
=
0.
self
.
out_size
=
np
.
array
([
65
,
129
]).
astype
(
"int32"
)
self
.
out_size
=
np
.
array
([
65
,
33
]).
astype
(
"int32"
)
self
.
align_corners
=
True
self
.
align_mode
=
1
...
...
@@ -225,8 +225,8 @@ class TestBilinearInterpCase6(TestBilinearInterpOp):
class
TestBilinearInterpSame
(
TestBilinearInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'bilinear'
self
.
input_shape
=
[
2
,
3
,
128
,
64
]
self
.
out_h
=
128
self
.
input_shape
=
[
2
,
3
,
32
,
64
]
self
.
out_h
=
32
self
.
out_w
=
64
self
.
scale
=
0.
self
.
align_corners
=
True
...
...
@@ -307,9 +307,9 @@ class TestBilinearInterpOpUint8(OpTest):
class
TestBilinearInterpCase1Uint8
(
TestBilinearInterpOpUint8
):
def
init_test_case
(
self
):
self
.
interp_method
=
'bilinear'
self
.
input_shape
=
[
2
,
3
,
128
,
64
]
self
.
out_h
=
120
self
.
out_w
=
50
self
.
input_shape
=
[
2
,
3
,
32
,
64
]
self
.
out_h
=
64
self
.
out_w
=
32
self
.
scale
=
0.
self
.
align_corners
=
True
self
.
align_mode
=
1
...
...
python/paddle/fluid/tests/unittests/test_nearest_interp_op.py
浏览文件 @
6cfcbe05
...
...
@@ -152,9 +152,9 @@ class TestNearestNeighborInterpCase2(TestNearestInterpOp):
class
TestNearestNeighborInterpCase3
(
TestNearestInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'nearest'
self
.
input_shape
=
[
1
,
1
,
128
,
64
]
self
.
input_shape
=
[
1
,
1
,
32
,
64
]
self
.
out_h
=
64
self
.
out_w
=
128
self
.
out_w
=
32
self
.
scale
=
0.
self
.
align_corners
=
True
...
...
@@ -184,9 +184,9 @@ class TestNearestNeighborInterpCase5(TestNearestInterpOp):
class
TestNearestNeighborInterpCase6
(
TestNearestInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'nearest'
self
.
input_shape
=
[
1
,
1
,
128
,
64
]
self
.
input_shape
=
[
1
,
1
,
32
,
64
]
self
.
out_h
=
64
self
.
out_w
=
128
self
.
out_w
=
32
self
.
scale
=
0.
self
.
out_size
=
np
.
array
([
65
,
129
]).
astype
(
"int32"
)
self
.
align_corners
=
True
...
...
@@ -195,8 +195,8 @@ class TestNearestNeighborInterpCase6(TestNearestInterpOp):
class
TestNearestNeighborInterpSame
(
TestNearestInterpOp
):
def
init_test_case
(
self
):
self
.
interp_method
=
'nearest'
self
.
input_shape
=
[
2
,
3
,
128
,
64
]
self
.
out_h
=
128
self
.
input_shape
=
[
2
,
3
,
32
,
64
]
self
.
out_h
=
32
self
.
out_w
=
64
self
.
scale
=
0.
self
.
align_corners
=
True
...
...
@@ -271,9 +271,9 @@ class TestNearestInterpOpUint8(OpTest):
class
TestNearestNeighborInterpCase1Uint8
(
TestNearestInterpOpUint8
):
def
init_test_case
(
self
):
self
.
interp_method
=
'nearest'
self
.
input_shape
=
[
2
,
3
,
128
,
64
]
self
.
out_h
=
12
0
self
.
out_w
=
5
0
self
.
input_shape
=
[
2
,
3
,
32
,
64
]
self
.
out_h
=
8
0
self
.
out_w
=
4
0
self
.
scale
=
0.
self
.
align_corners
=
True
...
...
python/paddle/fluid/tests/unittests/test_trilinear_interp_op.py
浏览文件 @
6cfcbe05
...
...
@@ -428,8 +428,8 @@ class TestTrilinearInterpScale2(TestTrilinearInterpOp):
def
init_test_case
(
self
):
self
.
interp_method
=
'trilinear'
self
.
input_shape
=
[
2
,
3
,
5
,
7
,
9
]
self
.
out_d
=
82
self
.
out_h
=
6
0
self
.
out_d
=
60
self
.
out_h
=
4
0
self
.
out_w
=
25
self
.
scale
=
1.
self
.
align_corners
=
True
...
...
@@ -440,8 +440,8 @@ class TestTrilinearInterpScale3(TestTrilinearInterpOp):
def
init_test_case
(
self
):
self
.
interp_method
=
'trilinear'
self
.
input_shape
=
[
2
,
3
,
5
,
7
,
9
]
self
.
out_d
=
82
self
.
out_h
=
6
0
self
.
out_d
=
60
self
.
out_h
=
4
0
self
.
out_w
=
25
self
.
scale
=
1.5
self
.
align_corners
=
True
...
...
@@ -452,8 +452,8 @@ class TestTrilinearInterpZero(TestTrilinearInterpOp):
def
init_test_case
(
self
):
self
.
interp_method
=
'trilinear'
self
.
input_shape
=
[
2
,
3
,
5
,
7
,
11
]
self
.
out_d
=
82
self
.
out_h
=
6
0
self
.
out_d
=
60
self
.
out_h
=
4
0
self
.
out_w
=
25
self
.
scale
=
0.2
self
.
align_corners
=
False
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录