未验证 提交 78ec51cd 编写于 作者: T tianshuo78520a 提交者: GitHub

Mv sequence dir (#52985)

* mv sequence tests

* mv sequence tests

* fix test error

* fix
上级 5889b687
...@@ -765,8 +765,6 @@ if(NOT WIN32) ...@@ -765,8 +765,6 @@ if(NOT WIN32)
test_ir_memory_optimize_transformer) test_ir_memory_optimize_transformer)
endif() endif()
add_subdirectory(sequence)
# dist xpu tests: # dist xpu tests:
if(WITH_XPU_BKCL) if(WITH_XPU_BKCL)
py_test(test_collective_allreduce_api_xpu py_test(test_collective_allreduce_api_xpu
......
...@@ -12,11 +12,14 @@ ...@@ -12,11 +12,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys
import unittest import unittest
import numpy as np import numpy as np
from eager_op_test import OpTest 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): class TestSeqConvEltAddRelu(OpTest):
......
...@@ -12,11 +12,14 @@ ...@@ -12,11 +12,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys
import unittest import unittest
import numpy as np import numpy as np
from eager_op_test import OpTest 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_avg,
compute_seqpool_sqrt, compute_seqpool_sqrt,
compute_seqpool_sum, compute_seqpool_sum,
......
...@@ -12,16 +12,19 @@ ...@@ -12,16 +12,19 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys
import unittest import unittest
import numpy as np import numpy as np
from eager_op_test import OpTest 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_avg,
compute_seqpool_sqrt, compute_seqpool_sqrt,
compute_seqpool_sum, compute_seqpool_sum,
) )
from test_cvm_op import cvm_compute
def convert_to_offset(lod): def convert_to_offset(lod):
......
...@@ -126,7 +126,7 @@ if(WITH_TESTING) ...@@ -126,7 +126,7 @@ if(WITH_TESTING)
add_subdirectory(quantization) add_subdirectory(quantization)
add_subdirectory(rnn) add_subdirectory(rnn)
add_subdirectory(rpc) add_subdirectory(rpc)
# add_subdirectory(sequence) add_subdirectory(sequence)
add_subdirectory(standalone_executor) add_subdirectory(standalone_executor)
add_subdirectory(tokenizer) add_subdirectory(tokenizer)
# add_subdirectory(white_list) # add_subdirectory(white_list)
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
import paddle import paddle
......
...@@ -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("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
import paddle import paddle
......
...@@ -24,7 +24,7 @@ from paddle.fluid.framework import ( ...@@ -24,7 +24,7 @@ from paddle.fluid.framework import (
program_guard, program_guard,
) )
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
import paddle import paddle
......
...@@ -19,7 +19,7 @@ import numpy as np ...@@ -19,7 +19,7 @@ import numpy as np
import paddle import paddle
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest, skip_check_grad_ci from eager_op_test import OpTest, skip_check_grad_ci
paddle.enable_static() paddle.enable_static()
......
...@@ -19,7 +19,7 @@ import numpy as np ...@@ -19,7 +19,7 @@ import numpy as np
import paddle import paddle
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -19,7 +19,7 @@ import numpy as np ...@@ -19,7 +19,7 @@ import numpy as np
import paddle import paddle
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -19,7 +19,7 @@ import numpy as np ...@@ -19,7 +19,7 @@ import numpy as np
from paddle.fluid import core from paddle.fluid import core
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
from test_softmax_op import stable_softmax from test_softmax_op import stable_softmax
......
...@@ -18,7 +18,7 @@ from copy import deepcopy ...@@ -18,7 +18,7 @@ from copy import deepcopy
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
......
...@@ -17,7 +17,7 @@ import unittest ...@@ -17,7 +17,7 @@ import unittest
import numpy as np import numpy as np
sys.path.append("../") sys.path.append("../../python/paddle/fluid/tests/unittests")
from eager_op_test import OpTest from eager_op_test import OpTest
import paddle import paddle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册