提交 aa41e544 authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't hide the error with a useless new error. Fix a test when cxx=

上级 a09228b5
......@@ -1436,6 +1436,11 @@ class Scan(PureOp):
outs[j][0][pos[j]] = \
output_storage[offset_out + j].storage[0]
except ValueError as e:
if i == 0:
# First iteration, so don't change the
# error message as it can't be the
# case we write about.
raise
ne = ValueError(
"An output of the scan has changed shape. "
"This may be caused by a pushout optimization."
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论