Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3b915741
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看板
提交
3b915741
编写于
12月 12, 2019
作者:
B
baojun
提交者:
Tao Luo
12月 12, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix nGraph UT for PY3 - Part I (#21678)
* fix test for PY3 test=develop * reduce file changes test=develop
上级
cb3763a8
变更
19
显示空白变更内容
内联
并排
Showing
19 changed file
with
59 addition
and
42 deletion
+59
-42
python/paddle/fluid/tests/unittests/ngraph/test_accuracy_ngraph_op.py
...e/fluid/tests/unittests/ngraph/test_accuracy_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_activation_ngraph_op.py
...fluid/tests/unittests/ngraph/test_activation_ngraph_op.py
+4
-4
python/paddle/fluid/tests/unittests/ngraph/test_adam_ngraph_op.py
...addle/fluid/tests/unittests/ngraph/test_adam_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_batch_norm_ngraph_op.py
...fluid/tests/unittests/ngraph/test_batch_norm_ngraph_op.py
+4
-3
python/paddle/fluid/tests/unittests/ngraph/test_cast_ngraph_op.py
...addle/fluid/tests/unittests/ngraph/test_cast_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_concat_ngraph_op.py
...dle/fluid/tests/unittests/ngraph/test_concat_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_conv2d_ngraph_op.py
...dle/fluid/tests/unittests/ngraph/test_conv2d_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_cross_entropy_ngraph_op.py
...id/tests/unittests/ngraph/test_cross_entropy_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_dropout_ngraph_op.py
...le/fluid/tests/unittests/ngraph/test_dropout_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_elementwise_add_ngraph_op.py
.../tests/unittests/ngraph/test_elementwise_add_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_fill_constant_ngraph_op.py
...id/tests/unittests/ngraph/test_fill_constant_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_fill_zeros_like_ngraph_op.py
.../tests/unittests/ngraph/test_fill_zeros_like_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_increment_ngraph_op.py
.../fluid/tests/unittests/ngraph/test_increment_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_lrn_ngraph_op.py
...paddle/fluid/tests/unittests/ngraph/test_lrn_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_matmul_ngraph_op.py
...dle/fluid/tests/unittests/ngraph/test_matmul_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_mean_ngraph_op.py
...addle/fluid/tests/unittests/ngraph/test_mean_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_momentum_ngraph_op.py
...e/fluid/tests/unittests/ngraph/test_momentum_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_mul_ngraph_op.py
...paddle/fluid/tests/unittests/ngraph/test_mul_ngraph_op.py
+3
-2
python/paddle/fluid/tests/unittests/ngraph/test_pool2d_ngraph_op.py
...dle/fluid/tests/unittests/ngraph/test_pool2d_ngraph_op.py
+3
-3
未找到文件。
python/paddle/fluid/tests/unittests/ngraph/test_accuracy_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_accuracy_op
import
TestAccuracyOp
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_accuracy_op
import
TestAccuracyOp
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_activation_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,11 +14,11 @@
from
__future__
import
print_function
import
unittest
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
import
numpy
as
np
import
paddle.fluid.core
as
core
from
paddle.fluid.tests.unittests.op_test
import
OpTest
from
paddle.fluid.tests.unittests.test_activation_op
import
TestAbs
,
TestGelu
,
TestSigmoid
,
TestSquare
,
TestRelu
,
TestTanh
from
op_test
import
OpTest
from
test_activation_op
import
TestAbs
,
TestGelu
,
TestSigmoid
,
TestSquare
,
TestRelu
,
TestTanh
class
TestNGRAPHReluDim4
(
TestRelu
):
...
...
python/paddle/fluid/tests/unittests/ngraph/test_adam_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_adam_op
import
TestAdamOp1
,
TestAdamOp2
,
TestAdamOpMultipleSteps
,
TestSparseAdamOp
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_adam_op
import
TestAdamOp1
,
TestAdamOp2
,
TestAdamOpMultipleSteps
,
TestSparseAdamOp
if
__name__
==
"__main__"
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_batch_norm_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,9 +14,10 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_batch_norm_op
import
TestBatchNormOpTraining
,
TestBatchNormOpInference
from
paddle.fluid.tests.unittests.op_test
import
_set_use_system_allocator
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_batch_norm_op
import
TestBatchNormOpTraining
,
TestBatchNormOpInference
from
op_test
import
_set_use_system_allocator
_set_use_system_allocator
(
True
)
...
...
python/paddle/fluid/tests/unittests/ngraph/test_cast_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_cast_op
import
TestCastOp1
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_cast_op
import
TestCastOp1
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_concat_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_concat_op
import
TestConcatOp
,
TestConcatOp2
,
TestConcatOp3
,
TestConcatOp4
,
TestConcatOp5
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_concat_op
import
TestConcatOp
,
TestConcatOp2
,
TestConcatOp3
,
TestConcatOp4
,
TestConcatOp5
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_conv2d_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_conv2d_op
import
TestConv2dOp
,
TestWithPad
,
TestWithStride
,
TestWithGroup
,
TestWith1x1
,
TestWithInput1x1Filter1x1
,
TestDepthwiseConv
,
TestDepthwiseConv2
,
TestDepthwiseConv3
,
TestDepthwiseConvWithDilation
,
TestDepthwiseConvWithDilation2
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_conv2d_op
import
TestConv2dOp
,
TestWithPad
,
TestWithStride
,
TestWithGroup
,
TestWith1x1
,
TestWithInput1x1Filter1x1
,
TestDepthwiseConv
,
TestDepthwiseConv2
,
TestDepthwiseConv3
,
TestDepthwiseConvWithDilation
,
TestDepthwiseConvWithDilation2
class
TestNGRAPHDepthwiseConv
(
TestDepthwiseConv
):
...
...
python/paddle/fluid/tests/unittests/ngraph/test_cross_entropy_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_cross_entropy_op
import
TestCrossEntropyOp
,
TestCrossEntropyOp2
,
TestCrossEntropyOp3
,
TestCrossEntropyOp4
,
TestCrossEntropyOp5
,
TestCrossEntropyOp6
,
TestCrossEntropyOp7
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_cross_entropy_op
import
TestCrossEntropyOp
,
TestCrossEntropyOp2
,
TestCrossEntropyOp3
,
TestCrossEntropyOp4
,
TestCrossEntropyOp5
,
TestCrossEntropyOp6
,
TestCrossEntropyOp7
if
__name__
==
"__main__"
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_dropout_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_dropout_op
import
TestDropoutOp
,
TestDropoutOp2
,
TestDropoutOp3
,
TestDropoutOp4
,
TestDropoutOp5
,
TestDropoutOp6
,
TestDropoutOp7
,
TestDropoutOp8
,
TestDropoutOp9
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_dropout_op
import
TestDropoutOp
,
TestDropoutOp2
,
TestDropoutOp3
,
TestDropoutOp4
,
TestDropoutOp5
,
TestDropoutOp6
,
TestDropoutOp7
,
TestDropoutOp8
,
TestDropoutOp9
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_elementwise_add_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_elementwise_add_op
import
TestElementwiseAddOp
,
TestElementwiseAddOp_broadcast_0
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_elementwise_add_op
import
TestElementwiseAddOp
,
TestElementwiseAddOp_broadcast_0
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_fill_constant_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,9 +14,10 @@
from
__future__
import
print_function
import
unittest
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
import
numpy
as
np
from
paddle.fluid.tests.unittests.
test_fill_constant_op
import
TestFillConstantOp1
,
TestFillConstantOp2
,
TestFillConstantOpWithSelectedRows
from
test_fill_constant_op
import
TestFillConstantOp1
,
TestFillConstantOp2
,
TestFillConstantOpWithSelectedRows
class
TestNGRAPHFillConstantFP64
(
TestFillConstantOp1
):
...
...
python/paddle/fluid/tests/unittests/ngraph/test_fill_zeros_like_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -13,8 +13,9 @@
# limitations under the License.
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_fill_zeros_like_op
import
TestFillZerosLikeOp
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_fill_zeros_like_op
import
TestFillZerosLikeOp
if
__name__
==
"__main__"
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_increment_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,9 +14,10 @@
from
__future__
import
print_function
import
unittest
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
import
numpy
as
np
from
paddle.fluid.tests.unittests.
op_test
import
OpTest
from
op_test
import
OpTest
class
TestNGRAPHIncrementOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/ngraph/test_lrn_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_lrn_op
import
TestLRNOp
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_lrn_op
import
TestLRNOp
class
TestLRNNGRAPHOp
(
TestLRNOp
):
...
...
python/paddle/fluid/tests/unittests/ngraph/test_matmul_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_matmul_op
import
*
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_matmul_op
import
*
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_mean_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -13,8 +13,9 @@
# limitations under the License.
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_mean_op
import
TestMeanOp
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_mean_op
import
TestMeanOp
if
__name__
==
"__main__"
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_momentum_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_momentum_op
import
TestMomentumOp1
,
TestMomentumOp2
,
TestLarsMomentumOp
,
TestSparseMomentumOp
,
TestSparseMomentumOp2
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_momentum_op
import
TestMomentumOp1
,
TestMomentumOp2
,
TestLarsMomentumOp
,
TestSparseMomentumOp
,
TestSparseMomentumOp2
if
__name__
==
'__main__'
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_mul_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,8 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.test_mul_op
import
TestMulOp
,
TestMulOp2
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_mul_op
import
TestMulOp
,
TestMulOp2
if
__name__
==
"__main__"
:
unittest
.
main
()
python/paddle/fluid/tests/unittests/ngraph/test_pool2d_ngraph_op.py
浏览文件 @
3b915741
...
...
@@ -14,9 +14,9 @@
from
__future__
import
print_function
import
unittest
from
paddle.fluid.tests.unittests.
test_pool2d_op
import
TestPool2D_Op
,
TestCase1
,
TestCase2
,
TestCase3
,
TestCase4
,
TestCase5
import
unittest
,
sys
sys
.
path
.
append
(
"../"
)
from
test_pool2d_op
import
TestPool2D_Op
,
TestCase1
,
TestCase2
,
TestCase3
,
TestCase4
,
TestCase5
class
TestNGRAPHCeilMode
(
TestCase1
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录