提交 dafc7e36 编写于 作者: E emailweixu 提交者: Yi Wang

Check data format consistency in data_feeder (#8417)

上级 c77715e3
......@@ -107,6 +107,9 @@ class DataFeeder(object):
dtype=dtype))
for each_sample in iterable:
assert len(each_sample) == len(converter), (
"The number of fields in data (%s) does not match " +
"len(feed_list) (%s)") % (len(each_sample), len(converter))
for each_converter, each_slot in six.zip(converter, each_sample):
each_converter.feed(each_slot)
ret_dict = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册