提交 bb611ee2 authored 作者: Frederic Bastien's avatar Frederic Bastien

Give more evidence to hint for more debug information.

上级 4f2a8bab
......@@ -138,7 +138,7 @@ def raise_with_op(node, thunk=None, exc_info=None):
"\nInputs types: %s" % types +
"\nInputs scalar values: %s" % scalar_values)
else:
detailed_err_msg += ("\nUse another linker then the c linker to"
detailed_err_msg += ("\nHINT: Use another linker then the c linker to"
" have the inputs shapes and strides printed.")
if theano.config.exception_verbosity == 'high':
......@@ -147,7 +147,8 @@ def raise_with_op(node, thunk=None, exc_info=None):
print_type=True)
detailed_err_msg += "\nDebugprint of the apply node: \n" + f.getvalue()
else:
detailed_err_msg += ("\nUse the Theano flag 'exception_verbosity=high'"
detailed_err_msg += ("\nHINT: Use the Theano flag"
" 'exception_verbosity=high'"
" for a debugprint of this apply node.")
exc_value = exc_type(str(exc_value) + detailed_err_msg)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论