detailed_err_msg+=("\nHINT: Use another linker then the c linker to"
" have the inputs shapes and strides printed.")
# Print node backtrace
tr=getattr(node.tag,'trace',None)
iftr:
sio=StringIO.StringIO()
traceback.print_list(tr,sio)
tr=sio.getvalue()
detailed_err_msg+="\nBacktrace when the node is created:"
detailed_err_msg+=str(tr)
else:
detailed_err_msg+=(
"\nHINT: Re-running with most Theano optimization disabled could give you a back-traces when this node was created. This can be done with by setting the Theano flags optimizer=fast_compile\n")