提交 7757381c authored 作者: Frederic's avatar Frederic

Fix error message formating

上级 c2810beb
......@@ -2665,8 +2665,8 @@ class Alloc(gof.Op):
if s.ndim != 0:
raise TypeError(
"Each shape dimension to Alloc must be a scalar, ",
'but dimension %s is not for apply node: %s' %
(i, s_as_str, s.ndim))
'but dimension %s have %d dimensions for apply node: %s' %
(i, s.ndim, s_as_str))
# if s is constant 1, then we're broadcastable in that dim
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论