提交 df6a535e authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Turned warning into info log message (see #693)

上级 bc093e0f
...@@ -520,12 +520,12 @@ class ModuleCache(object): ...@@ -520,12 +520,12 @@ class ModuleCache(object):
# entry somehow. # entry somehow.
assert entry not in self.module_from_name assert entry not in self.module_from_name
else: else:
warning("The same cache key is associated to " info("The same cache key is associated to "
"different modules. This should not " "different modules. This may happen "
"be possible! We will re-use the first" "if different processes compiled the "
" module (%s) instead of the new one " "same module independently. We will "
"(%s)." % (self.entry_from_key[key], "use %s instead of %s." %
entry)) (self.entry_from_key[key], entry))
self.loaded_key_pkl.add(key_pkl) self.loaded_key_pkl.add(key_pkl)
# Remember the map from a module's hash to the KeyData # Remember the map from a module's hash to the KeyData
...@@ -534,11 +534,10 @@ class ModuleCache(object): ...@@ -534,11 +534,10 @@ class ModuleCache(object):
if mod_hash in self.module_hash_to_key_data: if mod_hash in self.module_hash_to_key_data:
# This should not happen: a given module should # This should not happen: a given module should
# never be duplicated in the cache. # never be duplicated in the cache.
warning( info(
"Found duplicated modules in the cache! If " "Found duplicated modules in the cache! This "
"you are unable to debug this issue, it is " "may happen if different processes compiled "
"advised to at least clear your cache with " "the same module independently.")
"'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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论