From 56fb1e9854f3c902501a206368c94bd37b4279e6 Mon Sep 17 00:00:00 2001 From: wjj19950828 Date: Mon, 15 Aug 2022 14:27:53 +0800 Subject: [PATCH] add model.eval() --- tests/onnx/onnxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/onnx/onnxbase.py b/tests/onnx/onnxbase.py index 41770f9..99d5a03 100644 --- a/tests/onnx/onnxbase.py +++ b/tests/onnx/onnxbase.py @@ -214,6 +214,7 @@ class ONNXConverter(object): paddle.disable_static() # run model = paddle.jit.load(paddle_path) + model.eval() result = model(*paddle_tensor_feed) shutil.rmtree( os.path.join(self.pwd, self.name, self.name + '_' + str(ver) + -- GitLab