提交 dd0e35a6 authored 作者: Frederic's avatar Frederic

fix new crash while raising an error. This fix a buildbot test.

上级 de522246
......@@ -262,9 +262,9 @@ def Rop(f, wrt, eval_points):
str(i) +
' of wrt/eval_point have mismatched ' +
'dimensionality: ' +
str(wrt_dim) +
str(wrt_elem.type.ndim) +
' versus ' +
str(eval_dim))
str(eval_point.type.ndim))
except AttributeError:
# wrt_elem and eval_point don't always have ndim like random type
# Tensor, Sparse and CudaNdArray have the ndim attribute
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论