提交 9f25ef2f 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!127 fix detail_cache.has_content works not properly

Merge pull request !127 from wenkai/wk3_fix_detail_cache
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册