提交 4ffae0a4 authored 作者: Frederic's avatar Frederic

move print to the logger.

上级 a80c74bc
...@@ -967,10 +967,10 @@ class ModuleCache(object): ...@@ -967,10 +967,10 @@ class ModuleCache(object):
key_flat = flatten(key) key_flat = flatten(key)
ops = [k for k in key_flat ops = [k for k in key_flat
if isinstance(k, theano.Op)] if isinstance(k, theano.Op)]
print >>sys.stderr, ("Cache Warning: not all the" _logger.warning("not all the"
" following op(s) implement" " following op(s) implement"
" c_code_cache_version(). This make them" " c_code_cache_version(). This make them"
" recompiled for each process."), ops " recompiled for each process." + str(ops))
# Map the new module to its KeyData object. Note that # Map the new module to its KeyData object. Note that
# we need to do it regardless of whether the key is # we need to do it regardless of whether the key is
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论