|
|
|
@ -270,7 +270,7 @@ class CheckWrapper(object):
|
|
|
|
|
assert isinstance(each, collections.Sequence)
|
|
|
|
|
for d in each:
|
|
|
|
|
assert isinstance(d, float)
|
|
|
|
|
assert len(each, input_type.dim)
|
|
|
|
|
assert len(each) == input_type.dim
|
|
|
|
|
elif input_type.type == DataType.Index:
|
|
|
|
|
assert isinstance(each, int)
|
|
|
|
|
assert each < input_type.dim
|
|
|
|
|