Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
d612faf5
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
d612faf5
编写于
3月 29, 2023
作者:
W
wanghuancoder
提交者:
GitHub
3月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Del old dygraph optest8 (#52094)
* delete old dygraph op test
上级
b83e506b
变更
20
显示空白变更内容
内联
并排
Showing
20 changed file
with
22 addition
and
22 deletion
+22
-22
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+1
-1
python/paddle/fluid/tests/unittests/distribution/test_dirichlet_op.py
...e/fluid/tests/unittests/distribution/test_dirichlet_op.py
+1
-1
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
+1
-1
python/paddle/fluid/tests/unittests/ir/test_ir_subgraph_python_interface.py
...d/tests/unittests/ir/test_ir_subgraph_python_interface.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_concat.py
...le/fluid/tests/unittests/sequence/test_sequence_concat.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_enumerate_op.py
...id/tests/unittests/sequence/test_sequence_enumerate_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_erase_op.py
.../fluid/tests/unittests/sequence/test_sequence_erase_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_expand.py
...le/fluid/tests/unittests/sequence/test_sequence_expand.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_expand_as.py
...fluid/tests/unittests/sequence/test_sequence_expand_as.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_mask.py
...ddle/fluid/tests/unittests/sequence/test_sequence_mask.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_pad_op.py
...le/fluid/tests/unittests/sequence/test_sequence_pad_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_pool.py
...ddle/fluid/tests/unittests/sequence/test_sequence_pool.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_reshape.py
...e/fluid/tests/unittests/sequence/test_sequence_reshape.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_reverse.py
...e/fluid/tests/unittests/sequence/test_sequence_reverse.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_scatter_op.py
...luid/tests/unittests/sequence/test_sequence_scatter_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_slice_op.py
.../fluid/tests/unittests/sequence/test_sequence_slice_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_softmax_op.py
...luid/tests/unittests/sequence/test_sequence_softmax_op.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_topk_avg_pooling.py
...ests/unittests/sequence/test_sequence_topk_avg_pooling.py
+1
-1
python/paddle/fluid/tests/unittests/sequence/test_sequence_unpad_op.py
.../fluid/tests/unittests/sequence/test_sequence_unpad_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_label_smooth_op.py
python/paddle/fluid/tests/unittests/test_label_smooth_op.py
+3
-3
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
d612faf5
...
@@ -769,7 +769,7 @@ function run_linux_cpu_test() {
...
@@ -769,7 +769,7 @@ function run_linux_cpu_test() {
if
[
-d
"
${
PADDLE_ROOT
}
/dist/"
]
;
then
if
[
-d
"
${
PADDLE_ROOT
}
/dist/"
]
;
then
pip
install
${
PADDLE_ROOT
}
/dist/
*
whl
pip
install
${
PADDLE_ROOT
}
/dist/
*
whl
fi
fi
cp
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/op_test.py
${
PADDLE_ROOT
}
/build/python
cp
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/
eager_
op_test.py
${
PADDLE_ROOT
}
/build/python
cp
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/testsuite.py
${
PADDLE_ROOT
}
/build/python
cp
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/testsuite.py
${
PADDLE_ROOT
}
/build/python
cp
-r
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/white_list
${
PADDLE_ROOT
}
/build/python
cp
-r
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/white_list
${
PADDLE_ROOT
}
/build/python
ut_total_startTime_s
=
`
date
+%s
`
ut_total_startTime_s
=
`
date
+%s
`
...
...
python/paddle/fluid/tests/unittests/distribution/test_dirichlet_op.py
浏览文件 @
d612faf5
...
@@ -20,7 +20,7 @@ import scipy.stats
...
@@ -20,7 +20,7 @@ import scipy.stats
import
paddle
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
浏览文件 @
d612faf5
...
@@ -29,7 +29,7 @@ import paddle
...
@@ -29,7 +29,7 @@ import paddle
from
paddle
import
_C_ops
from
paddle
import
_C_ops
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/ir/test_ir_subgraph_python_interface.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import paddle
...
@@ -18,7 +18,7 @@ import paddle
from
paddle
import
fluid
from
paddle
import
fluid
from
paddle.fluid
import
core
from
paddle.fluid
import
core
from
paddle.fluid.framework
import
IrGraph
,
Program
,
program_guard
from
paddle.fluid.framework
import
IrGraph
,
Program
,
program_guard
from
paddle.fluid.tests.unittests.op_test
import
OpTestTool
from
paddle.fluid.tests.unittests.
eager_
op_test
import
OpTestTool
from
paddle.static.quantization
import
QuantizationTransformPass
from
paddle.static.quantization
import
QuantizationTransformPass
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_concat.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
import
paddle
import
paddle
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_enumerate_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
def
sequence_enumerate
(
input_seq
,
in_lod
,
win_size
,
pad_value
):
def
sequence_enumerate
(
input_seq
,
in_lod
,
win_size
,
pad_value
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_erase_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
def
sequence_erase
(
in_seq
,
lod0
,
tokens
):
def
sequence_erase
(
in_seq
,
lod0
,
tokens
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_expand.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceExpand
(
OpTest
):
class
TestSequenceExpand
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_expand_as.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
import
paddle
import
paddle
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_mask.py
浏览文件 @
d612faf5
...
@@ -25,7 +25,7 @@ from paddle.fluid.framework import (
...
@@ -25,7 +25,7 @@ from paddle.fluid.framework import (
)
)
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
SequenceMaskTestBase
(
OpTest
):
class
SequenceMaskTestBase
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_pad_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
import
paddle
import
paddle
from
paddle.fluid
import
core
from
paddle.fluid
import
core
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_pool.py
浏览文件 @
d612faf5
...
@@ -20,7 +20,7 @@ import numpy as np
...
@@ -20,7 +20,7 @@ import numpy as np
import
paddle
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
,
skip_check_grad_ci
from
eager_
op_test
import
OpTest
,
skip_check_grad_ci
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_reshape.py
浏览文件 @
d612faf5
...
@@ -20,7 +20,7 @@ import numpy as np
...
@@ -20,7 +20,7 @@ import numpy as np
import
paddle
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceReshape
(
OpTest
):
class
TestSequenceReshape
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_reverse.py
浏览文件 @
d612faf5
...
@@ -20,7 +20,7 @@ import numpy as np
...
@@ -20,7 +20,7 @@ import numpy as np
import
paddle
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceReverseBase
(
OpTest
):
class
TestSequenceReverseBase
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_scatter_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceScatterOp
(
OpTest
):
class
TestSequenceScatterOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_slice_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceSliceOp
(
OpTest
):
class
TestSequenceSliceOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_softmax_op.py
浏览文件 @
d612faf5
...
@@ -20,7 +20,7 @@ import numpy as np
...
@@ -20,7 +20,7 @@ import numpy as np
from
paddle.fluid
import
core
from
paddle.fluid
import
core
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
from
test_softmax_op
import
stable_softmax
from
test_softmax_op
import
stable_softmax
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_topk_avg_pooling.py
浏览文件 @
d612faf5
...
@@ -19,7 +19,7 @@ from copy import deepcopy
...
@@ -19,7 +19,7 @@ from copy import deepcopy
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
class
TestSequenceTopkAvgPoolingOp
(
OpTest
):
class
TestSequenceTopkAvgPoolingOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/sequence/test_sequence_unpad_op.py
浏览文件 @
d612faf5
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
numpy
as
np
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
from
eager_
op_test
import
OpTest
import
paddle
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_label_smooth_op.py
浏览文件 @
d612faf5
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
,
convert_float_to_uint16
from
eager_
op_test
import
OpTest
,
convert_float_to_uint16
import
paddle
import
paddle
from
paddle.fluid
import
core
from
paddle.fluid
import
core
...
@@ -77,11 +77,11 @@ class TestLabelSmoothOpBF16(OpTest):
...
@@ -77,11 +77,11 @@ class TestLabelSmoothOpBF16(OpTest):
def
test_check_output
(
self
):
def
test_check_output
(
self
):
place
=
core
.
CUDAPlace
(
0
)
place
=
core
.
CUDAPlace
(
0
)
self
.
check_output_with_place
(
place
,
check_eager
=
True
)
self
.
check_output_with_place
(
place
)
def
test_check_grad
(
self
):
def
test_check_grad
(
self
):
place
=
core
.
CUDAPlace
(
0
)
place
=
core
.
CUDAPlace
(
0
)
self
.
check_grad_with_place
(
place
,
[
"X"
],
"Out"
,
check_eager
=
True
)
self
.
check_grad_with_place
(
place
,
[
"X"
],
"Out"
)
class
TestLabelSmoothFP16OP
(
TestLabelSmoothOp
):
class
TestLabelSmoothFP16OP
(
TestLabelSmoothOp
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录