提交 075a7be6 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

improve error message

上级 04f37f32
......@@ -232,8 +232,9 @@ def rebuild_collect_shared(outputs,
copy_inputs_over)
cloned_outputs.append(Out(cloned_v, borrow=v.borrow))
else:
raise TypeError('outputs must be theano Variable or '
'Out instances', v)
raise TypeError('Outputs must be theano Variable or '
'Out instances. Received ' + str(v)\
+ ' of type '+str(type(v)))
#computed_list.append(cloned_v)
else:
if isinstance(outputs, Variable):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论