提交 0d56d163 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Updated warning message

上级 91dc7e2d
...@@ -490,14 +490,13 @@ class ModuleCache(object): ...@@ -490,14 +490,13 @@ class ModuleCache(object):
# object associated with it. # object associated with it.
mod_hash = key_data.module_hash mod_hash = key_data.module_hash
if mod_hash in self.module_hash_to_key_data: if mod_hash in self.module_hash_to_key_data:
# This should not happen anymore, but may happen # This should not happen: a given module should
# with the previous cache mechanism, that did not # never be duplicated in the cache.
# ensure uniqueness of the compiled modules.
warning( warning(
"Found duplicated modules in the cache, you " "Found duplicated modules in the cache! If "
"may be using an old cache. Clear it " "you are unable to debug this issue, it is "
"with 'theano-cache clear' to benefit from " "advised to at least clear your cache with "
"recent cache optimizations.") "'theano-cache clear'.")
else: else:
self.module_hash_to_key_data[mod_hash] = key_data self.module_hash_to_key_data[mod_hash] = key_data
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论