提交 da5ea343 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

better error message

上级 c0828b4c
...@@ -171,8 +171,8 @@ class Scan(PureOp): ...@@ -171,8 +171,8 @@ class Scan(PureOp):
len(self.inner_shared(self.inputs)) + len(self.inner_shared(self.inputs)) +
len(self.inner_non_seqs(self.inputs))) len(self.inner_non_seqs(self.inputs)))
assert n_outer_ins == n_inner_ins, \ assert n_outer_ins == n_inner_ins, \
("The number of inputs given to the lambda function does " ("The number of inputs given to the inner function of scan"
"not match the number of inputs given to the scan op node") " does not match the number of inputs given to scan.")
# assert dtype is consistent # assert dtype is consistent
err_msg1 = ('When compiling the inner function of scan the ' err_msg1 = ('When compiling the inner function of scan the '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论