Commit 85bb16a8 authored by Keon's avatar Keon Committed by Soumith Chintala
Browse files

Cifar also returns real data length (#211)

parent 4aff146c
...@@ -128,9 +128,9 @@ class CIFAR10(data.Dataset): ...@@ -128,9 +128,9 @@ class CIFAR10(data.Dataset):
def __len__(self): def __len__(self):
if self.train: if self.train:
return 50000 return len(self.train_data)
else: else:
return 10000 return len(self.test_data)
def _check_integrity(self): def _check_integrity(self):
root = self.root root = self.root
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment