Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
b1ec1d54
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看板
提交
b1ec1d54
编写于
12月 26, 2019
作者:
J
juncaipeng
提交者:
Tao Luo
12月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Delete check grad for int, collect op for now (#21922)
上级
2df4be5d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
7 addition
and
17 deletion
+7
-17
python/paddle/fluid/tests/unittests/op_test.py
python/paddle/fluid/tests/unittests/op_test.py
+2
-2
python/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
...n/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
+1
-2
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
+0
-4
python/paddle/fluid/tests/unittests/test_nearest_interp_op.py
...on/paddle/fluid/tests/unittests/test_nearest_interp_op.py
+1
-2
python/paddle/fluid/tests/unittests/test_trilinear_interp_op.py
.../paddle/fluid/tests/unittests/test_trilinear_interp_op.py
+1
-2
python/paddle/fluid/tests/unittests/white_list/op_accuracy_white_list.py
...luid/tests/unittests/white_list/op_accuracy_white_list.py
+2
-5
未找到文件。
python/paddle/fluid/tests/unittests/op_test.py
浏览文件 @
b1ec1d54
...
...
@@ -202,8 +202,8 @@ class OpTest(unittest.TestCase):
if
not
hasattr
(
cls
,
"no_need_check_grad"
)
\
and
cls
.
op_type
not
in
op_check_grad_white_list
.
EMPTY_GRAD_OP_LIST
:
if
cls
.
dtype
is
None
or
\
(
cls
.
dtype
in
[
np
.
float16
,
np
.
int64
,
np
.
int32
,
np
.
int16
]
\
and
cls
.
op_type
not
in
op_accuracy_white_list
.
NO_CHECK_GRAD_OP_LIST
\
(
cls
.
dtype
==
np
.
float16
\
and
cls
.
op_type
not
in
op_accuracy_white_list
.
NO_
FP16_
CHECK_GRAD_OP_LIST
\
and
not
hasattr
(
cls
,
"exist_check_grad"
)):
raise
AssertionError
(
"This test of %s op needs check_grad."
%
cls
.
op_type
)
...
...
python/paddle/fluid/tests/unittests/test_bilinear_interp_op.py
浏览文件 @
b1ec1d54
...
...
@@ -16,7 +16,7 @@ from __future__ import print_function
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
...
...
@@ -315,7 +315,6 @@ class TestBilinearInterpCase1Uint8(TestBilinearInterpOpUint8):
self
.
align_mode
=
1
@
skip_check_grad_ci
(
reason
=
"uint8 type only be used in test and inference."
)
class
TestBilinearInterpCase2Uint8
(
TestBilinearInterpOpUint8
):
def
init_test_case
(
self
):
self
.
interp_method
=
'bilinear'
...
...
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
浏览文件 @
b1ec1d54
...
...
@@ -180,7 +180,6 @@ class TestEmbedOpError(unittest.TestCase):
fluid
.
layers
.
embedding
(
input
=
input3
,
size
=
(
10
,
64
),
dtype
=
'float16'
)
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestLookupTableOpInt8
(
OpTest
):
def
setUp
(
self
):
self
.
op_type
=
"lookup_table"
...
...
@@ -200,7 +199,6 @@ class TestLookupTableOpInt8(OpTest):
pass
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestLookupTableOpWithTensorIdsInt8
(
OpTest
):
def
setUp
(
self
):
self
.
op_type
=
"lookup_table"
...
...
@@ -220,7 +218,6 @@ class TestLookupTableOpWithTensorIdsInt8(OpTest):
pass
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestLookupTableOpWithPaddingInt8
(
TestLookupTableOpInt8
):
def
test_check_output
(
self
):
ids
=
np
.
squeeze
(
self
.
inputs
[
'Ids'
])
...
...
@@ -235,7 +232,6 @@ class TestLookupTableOpWithPaddingInt8(TestLookupTableOpInt8):
pass
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestLookupTableOpWithTensorIdsAndPaddingInt8
(
TestLookupTableOpWithTensorIdsInt8
):
def
test_check_output
(
self
):
...
...
python/paddle/fluid/tests/unittests/test_nearest_interp_op.py
浏览文件 @
b1ec1d54
...
...
@@ -16,7 +16,7 @@ from __future__ import print_function
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
...
...
@@ -278,7 +278,6 @@ class TestNearestNeighborInterpCase1Uint8(TestNearestInterpOpUint8):
self
.
align_corners
=
True
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestNearestNeighborInterpCase2Uint8
(
TestNearestInterpOpUint8
):
def
init_test_case
(
self
):
self
.
interp_method
=
'nearest'
...
...
python/paddle/fluid/tests/unittests/test_trilinear_interp_op.py
浏览文件 @
b1ec1d54
...
...
@@ -16,7 +16,7 @@ from __future__ import print_function
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
...
...
@@ -381,7 +381,6 @@ class TestTrilinearInterpCase1Uint8(TestTrilinearInterpOpUint8):
self
.
align_mode
=
1
@
skip_check_grad_ci
(
reason
=
"int8 type only be used in test and inference."
)
class
TestTrilinearInterpCase2Uint8
(
TestTrilinearInterpOpUint8
):
def
init_test_case
(
self
):
self
.
interp_method
=
'trilinear'
...
...
python/paddle/fluid/tests/unittests/white_list/op_accuracy_white_list.py
浏览文件 @
b1ec1d54
...
...
@@ -33,9 +33,6 @@ NO_FP64_CHECK_GRAD_OP_LIST = [
'trilinear_interp'
,
'var_conv_2d'
,
'warpctc'
]
NO_CHECK_GRAD_OP_LIST
=
[
'cudnn_lstm'
,
'elementwise_div'
,
'elementwise_mul'
,
'elementwise_pow'
,
'expand'
,
'fused_elemwise_activation'
,
'increment'
,
'match_matrix_tensor'
,
'mul'
,
'pool2d'
,
'pool3d'
,
'relu'
,
'sigmoid'
,
'softmax'
,
'sqrt'
,
'tanh'
,
'transpose2'
,
'var_conv_2d'
NO_FP16_CHECK_GRAD_OP_LIST
=
[
'fused_elemwise_activation'
,
'pool2d'
,
'pool3d'
,
'softmax'
]
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录