未验证 提交 5e29f30c 编写于 作者: L liulinduo 提交者: GitHub

[Test Mv] remove rnn (#52967)

* [Test Mv] remove rnn

* Update test_rnn_cell_api.py
上级 be04f258
...@@ -769,7 +769,6 @@ if(NOT WIN32) ...@@ -769,7 +769,6 @@ if(NOT WIN32)
endif() endif()
add_subdirectory(sequence) add_subdirectory(sequence)
add_subdirectory(rnn)
add_subdirectory(distribution) add_subdirectory(distribution)
# dist xpu tests: # dist xpu tests:
......
...@@ -22,7 +22,7 @@ from eager_op_test import OpTest ...@@ -22,7 +22,7 @@ from eager_op_test import OpTest
import paddle import paddle
from paddle.fluid import core from paddle.fluid import core
sys.path.append("./rnn") sys.path.append("../../../../../test/rnn")
from convert import get_params_for_net from convert import get_params_for_net
from rnn_numpy import GRU from rnn_numpy import GRU
......
...@@ -12,12 +12,15 @@ ...@@ -12,12 +12,15 @@
# 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 import numpy
import numpy as np import numpy as np
from rnn.rnn_numpy import LSTMCell
from rnn.rnn_numpy import rnn as numpy_rnn sys.path.append("../../../../../test/rnn")
from rnn_numpy import LSTMCell
from rnn_numpy import rnn as numpy_rnn
import paddle import paddle
from paddle import fluid from paddle import fluid
......
...@@ -22,7 +22,7 @@ from eager_op_test import OpTest ...@@ -22,7 +22,7 @@ from eager_op_test import OpTest
import paddle import paddle
from paddle.fluid import core from paddle.fluid import core
sys.path.append("./rnn") sys.path.append("../../../../../test/rnn")
from convert import get_params_for_net from convert import get_params_for_net
from rnn_numpy import LSTM from rnn_numpy import LSTM
......
...@@ -22,9 +22,9 @@ from eager_op_test import OpTest ...@@ -22,9 +22,9 @@ from eager_op_test import OpTest
import paddle import paddle
from paddle.fluid import core from paddle.fluid import core
sys.path.append("./rnn") sys.path.append("../../../../../test/rnn")
from rnn.convert import get_params_for_net from convert import get_params_for_net
from rnn.rnn_numpy import SimpleRNN from rnn_numpy import SimpleRNN
random.seed(2) random.seed(2)
np.set_printoptions(threshold=np.inf) np.set_printoptions(threshold=np.inf)
......
...@@ -122,7 +122,7 @@ if(WITH_TESTING) ...@@ -122,7 +122,7 @@ if(WITH_TESTING)
add_subdirectory(prim) add_subdirectory(prim)
# add_subdirectory(ps) # add_subdirectory(ps)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册