未验证 提交 176a8832 编写于 作者: C Chenxiao Niu 提交者: GitHub

[MLU] fix mlu ctest for bilinear, relu6 and squared_l2_norm (#44230)

上级 38cd4737
......@@ -576,8 +576,6 @@ class TestBilinearInterpOpAPI_dy(unittest.TestCase):
place = core.CPUPlace()
with fluid.dygraph.guard(place):
input_data = np.random.random((2, 3, 6, 6)).astype("float32")
input_data = np.load('input.npy').astype("float32")
# print(input_data)
input_x = paddle.to_tensor(input_data)
expect_res = bilinear_interp_np(input_data,
out_h=12,
......
......@@ -15,13 +15,13 @@
from __future__ import print_function
import paddle.fluid as fluid
import paddle
import sys
sys.path.append("..")
from op_test import OpTest
import numpy as np
import unittest
import sys
sys.path.append("..")
paddle.enable_static()
SEED = 2021
......
......@@ -24,6 +24,8 @@ from op_test import OpTest
import paddle
from paddle import _C_ops
paddle.enable_static()
class TestL2LossOp(OpTest):
"""Test squared_l2_norm
......@@ -66,5 +68,4 @@ class TestL2LossDeterministic(unittest.TestCase):
if __name__ == "__main__":
paddle.enable_static()
unittest.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册