From 3cb0fbbbef6400309768cb448cfbfad57021d0d1 Mon Sep 17 00:00:00 2001 From: wenkai Date: Tue, 19 May 2020 10:36:24 +0800 Subject: [PATCH] fix detail_cache.has_content works not properly (always return the wrong value false) --- mindinsight/datavisual/data_transform/data_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mindinsight/datavisual/data_transform/data_manager.py b/mindinsight/datavisual/data_transform/data_manager.py index ee0cd04..c5f266b 100644 --- a/mindinsight/datavisual/data_transform/data_manager.py +++ b/mindinsight/datavisual/data_transform/data_manager.py @@ -369,6 +369,10 @@ class _DetailCacheManager(_BaseCacheManager): self._max_threads_count = 30 self._loader_generators = loader_generators + def has_content(self): + """Whether this cache manager has train jobs.""" + return bool(self._loader_pool) + def size(self): """ Get the number of items in this cache manager. -- GitLab