From 788d4f84c48c5f6377a834a4ea32e3711a9f483d Mon Sep 17 00:00:00 2001 From: arlesniak Date: Fri, 25 Sep 2020 12:05:08 +0200 Subject: [PATCH] python3 encoding fix --- .../tests/unittests/mkldnn/test_flags_mkldnn_ops_on_off.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/mkldnn/test_flags_mkldnn_ops_on_off.py b/python/paddle/fluid/tests/unittests/mkldnn/test_flags_mkldnn_ops_on_off.py index 52dc71c0ed8..8052dc8f1e7 100644 --- a/python/paddle/fluid/tests/unittests/mkldnn/test_flags_mkldnn_ops_on_off.py +++ b/python/paddle/fluid/tests/unittests/mkldnn/test_flags_mkldnn_ops_on_off.py @@ -31,9 +31,9 @@ class TestFlagsUseMkldnn(unittest.TestCase): self.env[str("DNNL_VERBOSE")] = str("1") self.env[str("FLAGS_use_mkldnn")] = str("1") - self.relu_regex = r"^dnnl_verbose,exec,cpu,eltwise,.+alg:eltwise_relu alpha:0 beta:0,10x20x20" - self.ew_add_regex = r"^dnnl_verbose,exec,cpu,binary.+alg:binary_add,10x20x30:10x20x30 10x20x30" - self.matmul_regex = r"^dnnl_verbose,exec,cpu,matmul,.*b10m20n20k30" + self.relu_regex = b"^dnnl_verbose,exec,cpu,eltwise,.+alg:eltwise_relu alpha:0 beta:0,10x20x20" + self.ew_add_regex = b"^dnnl_verbose,exec,cpu,binary.+alg:binary_add,10x20x30:10x20x30 10x20x30" + self.matmul_regex = b"^dnnl_verbose,exec,cpu,matmul,.*b10m20n20k30" def flags_use_mkl_dnn_common(self, e): cmd = self._python_interp -- GitLab