未验证 提交 99909520 编写于 作者: L LielinJiang 提交者: GitHub

Fix the issue of disordered loading cifar data (#37272)

上级 6a813d83
......@@ -140,6 +140,8 @@ class Cifar10(Dataset):
names = (each_item.name for each_item in f
if self.flag in each_item.name)
names = sorted(list(names))
for name in names:
batch = pickle.load(f.extractfile(name), encoding='bytes')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册