提交 01a13aad authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merged

......@@ -1105,6 +1105,12 @@ def _execute(cthunk, init_tasks, tasks, error_storage):
except:
print >> sys.stderr, 'ERROR retrieving error_storage', error_storage
raise
#TODO-- someone who understands how these exceptions work, please put this info into the exception message itself
# (exc_value.message seems to be ignored)
print "while computing "+str(task.outputs)
raise exc_type, exc_value, exc_trace
execute.cthunk = cthunk
return execute
......
......@@ -415,6 +415,10 @@ def scan( fn
# each frame by the corresponding slice
nw_slice = seq['input'][0].type()
actual_slice = seq['input'][k-mintap]
if not hasattr(seq['input'],'name'):
raise TypeError('Expected object with a "name" field, got '+str(seq)+"['input'] = "+str(seq['input']))
# Add names to slices for debugging and pretty printing ..
# that is if the input already has a name
if seq['input'].name:
......
......@@ -662,7 +662,7 @@ class Elemwise(Op):
try:
variables = ufunc(*ufunc_args)
except Exception, e:
errormsg = 'Failed calling ufunc for op', self.scalar_op,\
errormsg = 'While computing '+str(node.outputs)+': Failed calling ufunc for op', self.scalar_op,\
'for params of shape', [arg.shape for arg in ufunc_args]
e.args = e.args + errormsg
raise
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论