提交 85502783 编写于 作者: Y Yancey1989

Bugfix: checkout input_type failed

上级 81fb41f0
...@@ -270,7 +270,7 @@ class CheckWrapper(object): ...@@ -270,7 +270,7 @@ class CheckWrapper(object):
assert isinstance(each, collections.Sequence) assert isinstance(each, collections.Sequence)
for d in each: for d in each:
assert isinstance(d, float) assert isinstance(d, float)
assert len(each, input_type.dim) assert len(each) == input_type.dim
elif input_type.type == DataType.Index: elif input_type.type == DataType.Index:
assert isinstance(each, int) assert isinstance(each, int)
assert each < input_type.dim assert each < input_type.dim
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册