Mode which is used when compiling functions or modules is now logged to stderr

上级 f11d27f3
......@@ -792,6 +792,7 @@ def function(inputs, outputs, mode=None, accept_inplace = False):
"""
mode = mode if mode is not None else mode_module.default_mode
print >> sys.stderr, "INFO: compiling function with mode", mode
inputs = map(convert_function_input, inputs)
if outputs is None:
......
......@@ -149,6 +149,7 @@ class Component(object):
memo = {}
self.allocate(memo)
rval = self.build(mode, memo)
print >> sys.stderr, "INFO: compiling component with mode", mode
return rval
def make(self, *args, **kwargs):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论