Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
78ec51cd
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看板
未验证
提交
78ec51cd
编写于
4月 19, 2023
作者:
T
tianshuo78520a
提交者:
GitHub
4月 19, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mv sequence dir (#52985)
* mv sequence tests * mv sequence tests * fix test error * fix
上级
5889b687
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
30 addition
and
23 deletion
+30
-23
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+0
-2
python/paddle/fluid/tests/unittests/test_fusion_seqconv_eltadd_relu_op.py
...uid/tests/unittests/test_fusion_seqconv_eltadd_relu_op.py
+4
-1
python/paddle/fluid/tests/unittests/test_fusion_seqpool_concat_op.py
...le/fluid/tests/unittests/test_fusion_seqpool_concat_op.py
+4
-1
python/paddle/fluid/tests/unittests/test_fusion_seqpool_cvm_concat_op.py
...luid/tests/unittests/test_fusion_seqpool_cvm_concat_op.py
+5
-2
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
test/sequence/CMakeLists.txt
test/sequence/CMakeLists.txt
+0
-0
test/sequence/__init__.py
test/sequence/__init__.py
+0
-0
test/sequence/test_sequence_concat.py
test/sequence/test_sequence_concat.py
+1
-1
test/sequence/test_sequence_conv.py
test/sequence/test_sequence_conv.py
+1
-1
test/sequence/test_sequence_enumerate_op.py
test/sequence/test_sequence_enumerate_op.py
+1
-1
test/sequence/test_sequence_erase_op.py
test/sequence/test_sequence_erase_op.py
+1
-1
test/sequence/test_sequence_expand.py
test/sequence/test_sequence_expand.py
+1
-1
test/sequence/test_sequence_expand_as.py
test/sequence/test_sequence_expand_as.py
+1
-1
test/sequence/test_sequence_first_step.py
test/sequence/test_sequence_first_step.py
+0
-0
test/sequence/test_sequence_last_step.py
test/sequence/test_sequence_last_step.py
+0
-0
test/sequence/test_sequence_mask.py
test/sequence/test_sequence_mask.py
+1
-1
test/sequence/test_sequence_pad_op.py
test/sequence/test_sequence_pad_op.py
+1
-1
test/sequence/test_sequence_pool.py
test/sequence/test_sequence_pool.py
+1
-1
test/sequence/test_sequence_reshape.py
test/sequence/test_sequence_reshape.py
+1
-1
test/sequence/test_sequence_reverse.py
test/sequence/test_sequence_reverse.py
+1
-1
test/sequence/test_sequence_scatter_op.py
test/sequence/test_sequence_scatter_op.py
+1
-1
test/sequence/test_sequence_slice_op.py
test/sequence/test_sequence_slice_op.py
+1
-1
test/sequence/test_sequence_softmax_op.py
test/sequence/test_sequence_softmax_op.py
+1
-1
test/sequence/test_sequence_topk_avg_pooling.py
test/sequence/test_sequence_topk_avg_pooling.py
+1
-1
test/sequence/test_sequence_unpad_op.py
test/sequence/test_sequence_unpad_op.py
+1
-1
未找到文件。
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
78ec51cd
...
...
@@ -765,8 +765,6 @@ if(NOT WIN32)
test_ir_memory_optimize_transformer
)
endif
()
add_subdirectory
(
sequence
)
# dist xpu tests:
if
(
WITH_XPU_BKCL
)
py_test
(
test_collective_allreduce_api_xpu
...
...
python/paddle/fluid/tests/unittests/test_fusion_seqconv_eltadd_relu_op.py
浏览文件 @
78ec51cd
...
...
@@ -12,11 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
unittest
import
numpy
as
np
from
eager_op_test
import
OpTest
from
sequence.test_sequence_conv
import
seqconv
sys
.
path
.
append
(
"../../../../../test/sequence"
)
from
test_sequence_conv
import
seqconv
class
TestSeqConvEltAddRelu
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/test_fusion_seqpool_concat_op.py
浏览文件 @
78ec51cd
...
...
@@ -12,11 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
unittest
import
numpy
as
np
from
eager_op_test
import
OpTest
from
sequence.test_sequence_pool
import
(
sys
.
path
.
append
(
"../../../../../test/sequence"
)
from
test_sequence_pool
import
(
compute_seqpool_avg
,
compute_seqpool_sqrt
,
compute_seqpool_sum
,
...
...
python/paddle/fluid/tests/unittests/test_fusion_seqpool_cvm_concat_op.py
浏览文件 @
78ec51cd
...
...
@@ -12,16 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
unittest
import
numpy
as
np
from
eager_op_test
import
OpTest
from
sequence.test_sequence_pool
import
(
sys
.
path
.
append
(
"../../../../../test/sequence"
)
from
test_cvm_op
import
cvm_compute
from
test_sequence_pool
import
(
compute_seqpool_avg
,
compute_seqpool_sqrt
,
compute_seqpool_sum
,
)
from
test_cvm_op
import
cvm_compute
def
convert_to_offset
(
lod
):
...
...
test/CMakeLists.txt
浏览文件 @
78ec51cd
...
...
@@ -126,7 +126,7 @@ if(WITH_TESTING)
add_subdirectory
(
quantization
)
add_subdirectory
(
rnn
)
add_subdirectory
(
rpc
)
#
add_subdirectory(sequence)
add_subdirectory
(
sequence
)
add_subdirectory
(
standalone_executor
)
add_subdirectory
(
tokenizer
)
# add_subdirectory(white_list)
...
...
python/paddle/fluid/tests/unittests
/sequence/CMakeLists.txt
→
test
/sequence/CMakeLists.txt
浏览文件 @
78ec51cd
文件已移动
python/paddle/fluid/tests/unittests
/sequence/__init__.py
→
test
/sequence/__init__.py
浏览文件 @
78ec51cd
文件已移动
python/paddle/fluid/tests/unittests
/sequence/test_sequence_concat.py
→
test
/sequence/test_sequence_concat.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
import
paddle
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_conv.py
→
test
/sequence/test_sequence_conv.py
浏览文件 @
78ec51cd
...
...
@@ -20,7 +20,7 @@ import numpy as np
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_enumerate_op.py
→
test
/sequence/test_sequence_enumerate_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_erase_op.py
→
test
/sequence/test_sequence_erase_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_expand.py
→
test
/sequence/test_sequence_expand.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_expand_as.py
→
test
/sequence/test_sequence_expand_as.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
import
paddle
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_first_step.py
→
test
/sequence/test_sequence_first_step.py
浏览文件 @
78ec51cd
文件已移动
python/paddle/fluid/tests/unittests
/sequence/test_sequence_last_step.py
→
test
/sequence/test_sequence_last_step.py
浏览文件 @
78ec51cd
文件已移动
python/paddle/fluid/tests/unittests
/sequence/test_sequence_mask.py
→
test
/sequence/test_sequence_mask.py
浏览文件 @
78ec51cd
...
...
@@ -24,7 +24,7 @@ from paddle.fluid.framework import (
program_guard
,
)
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_pad_op.py
→
test
/sequence/test_sequence_pad_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
import
paddle
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_pool.py
→
test
/sequence/test_sequence_pool.py
浏览文件 @
78ec51cd
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
,
skip_check_grad_ci
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_reshape.py
→
test
/sequence/test_sequence_reshape.py
浏览文件 @
78ec51cd
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_reverse.py
→
test
/sequence/test_sequence_reverse.py
浏览文件 @
78ec51cd
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
paddle
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_scatter_op.py
→
test
/sequence/test_sequence_scatter_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_slice_op.py
→
test
/sequence/test_sequence_slice_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_softmax_op.py
→
test
/sequence/test_sequence_softmax_op.py
浏览文件 @
78ec51cd
...
...
@@ -19,7 +19,7 @@ import numpy as np
from
paddle.fluid
import
core
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
from
test_softmax_op
import
stable_softmax
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_topk_avg_pooling.py
→
test
/sequence/test_sequence_topk_avg_pooling.py
浏览文件 @
78ec51cd
...
...
@@ -18,7 +18,7 @@ from copy import deepcopy
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests
/sequence/test_sequence_unpad_op.py
→
test
/sequence/test_sequence_unpad_op.py
浏览文件 @
78ec51cd
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
sys
.
path
.
append
(
"../"
)
sys
.
path
.
append
(
"../
../python/paddle/fluid/tests/unittests
"
)
from
eager_op_test
import
OpTest
import
paddle
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录