提交 e5b05f47 authored 作者: Cesar Laurent's avatar Cesar Laurent

Better error message.

上级 10d8e7ee
......@@ -422,7 +422,8 @@ class Scan(PureOp):
"axis %d in `output_info`. This can happen if one of the "
"dimension is fixed to 1 in the input, while it is still "
"variable in the output, or vice-verca. You have to make "
"them consistent.")
"them consistent, e.g. using theano.tensor."
"{patternbroadcast,unbroadcast,addbroadcast}.")
size = min(len(v1.broadcastable), len(v2.broadcastable))
for n, (b1, b2) in enumerate(zip(v1.broadcastable[-size:],
v2.broadcastable[-size:])):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论