diff --git a/mindinsight/datavisual/data_transform/data_manager.py b/mindinsight/datavisual/data_transform/data_manager.py index ee0cd04c14c8c4501e92d2239f538900d95dd90f..c5f266b8cd4f8d6f6e33a2e14d8a07b04130d167 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.