Browse Source

fix detail_cache.has_content works not properly (always return the wrong value false)

tags/v0.3.0-alpha
wenkai 6 years ago
parent
commit
3cb0fbbbef
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindinsight/datavisual/data_transform/data_manager.py

+ 4
- 0
mindinsight/datavisual/data_transform/data_manager.py View File

@@ -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.


Loading…
Cancel
Save