未验证 提交 d612faf5 编写于 作者: W wanghuancoder 提交者: GitHub

Del old dygraph optest8 (#52094)

* delete old dygraph op test
上级 b83e506b
...@@ -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`
......
...@@ -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()
......
...@@ -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()
......
...@@ -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()
......
...@@ -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
......
...@@ -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):
......
...@@ -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):
......
...@@ -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):
......
...@@ -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
......
...@@ -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):
......
...@@ -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
......
...@@ -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()
......
...@@ -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):
......
...@@ -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):
......
...@@ -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):
......
...@@ -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):
......
...@@ -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
......
...@@ -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):
......
...@@ -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
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册