提交 21e9cb70 authored 作者: James Bergstra's avatar James Bergstra

added debug info to exception in DimShuffle constructor

上级 f8f641b3
......@@ -107,7 +107,7 @@ class DimShuffle(Op):
self.drop.append(i)
else:
# we cannot drop non-broadcastable dimensions
raise ValueError("You cannot drop a non-broadcastable dimension.")
raise ValueError("You cannot drop a non-broadcastable dimension.", (input_broadcastable, new_order))
else:
i2j[i] = j
j += 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论