未验证 提交 e396c478 编写于 作者: 石晓伟 提交者: GitHub

try to resolve the inference_pass_test, test=develop (#24172)

上级 e3179ea2
...@@ -29,19 +29,19 @@ from paddle.fluid.core import create_paddle_predictor ...@@ -29,19 +29,19 @@ from paddle.fluid.core import create_paddle_predictor
class InferencePassTest(unittest.TestCase): class InferencePassTest(unittest.TestCase):
@classmethod def __init__(self, methodName='runTest'):
def setUpClass(cls): super(InferencePassTest, self).__init__(methodName)
cls.main_program = fluid.Program() self.main_program = fluid.Program()
cls.startup_program = fluid.Program() self.startup_program = fluid.Program()
cls.feeds = None self.feeds = None
cls.fetch_list = None self.fetch_list = None
cls.enable_mkldnn = False self.enable_mkldnn = False
cls.enable_trt = False self.enable_trt = False
cls.trt_parameters = None self.trt_parameters = None
cls.enable_lite = False self.enable_lite = False
cls.lite_parameters = None self.lite_parameters = None
cls.path = "./inference_pass/" self.path = "./inference_pass/" + self.__class__.__name__ + "/"
np.random.seed(1) np.random.seed(1)
random.seed(1) random.seed(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册