提交 7523caa4 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

More informative Scan error message

上级 fd9ea989
...@@ -999,8 +999,8 @@ class Scan(Op, ScanMethodsMixin, HasInnerGraph): ...@@ -999,8 +999,8 @@ class Scan(Op, ScanMethodsMixin, HasInnerGraph):
if n_outer_ins != n_inner_ins: if n_outer_ins != n_inner_ins:
raise ValueError( raise ValueError(
"The number of inputs given to the inner function of scan" f"The number of inputs given to the inner function of scan {n_inner_ins} "
" does not match the number of inputs given to scan." f"does not match the number of inputs given to scan {n_outer_ins}."
) )
# Force the inputs to be on the CPU # Force the inputs to be on the CPU
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论