From c91cb6c5509e3285fa36f2e5cc7e6f825d5b0d1c Mon Sep 17 00:00:00 2001 From: Liufang Sang Date: Wed, 20 Nov 2019 10:11:19 +0800 Subject: [PATCH] fix load checkpoint error in test_reader (#20924) --- python/paddle/fluid/contrib/slim/tests/test_reader.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/paddle/fluid/contrib/slim/tests/test_reader.py b/python/paddle/fluid/contrib/slim/tests/test_reader.py index 8c054493d75..7e061007c68 100644 --- a/python/paddle/fluid/contrib/slim/tests/test_reader.py +++ b/python/paddle/fluid/contrib/slim/tests/test_reader.py @@ -13,7 +13,6 @@ # limitations under the license. import os -import shutil import paddle import unittest import paddle.fluid as fluid @@ -40,9 +39,6 @@ class TestReader(unittest.TestCase): return [('img', image.name), ('label', label.name)] def quan(self, config_file): - if os.path.exists('./checkpoints_quan'): - shutil.rmtree('./checkpoints_quan') - if not fluid.core.is_compiled_with_cuda(): return class_dim = 10 -- GitLab