1 | from fuel.downloaders.base import default_downloader |
||
0 ignored issues
–
show
|
|||
2 | |||
3 | |||
4 | def fill_subparser(subparser): |
||
5 | """Sets up a subparser to download the CIFAR-10 dataset file. |
||
6 | |||
7 | The CIFAR-10 dataset file is downloaded from Alex Krizhevsky's |
||
8 | website [ALEX]. |
||
9 | |||
10 | Parameters |
||
11 | ---------- |
||
12 | subparser : :class:`argparse.ArgumentParser` |
||
13 | Subparser handling the `cifar10` command. |
||
14 | |||
15 | """ |
||
16 | url = 'http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz' |
||
17 | filename = 'cifar-10-python.tar.gz' |
||
18 | subparser.set_defaults(urls=[url], filenames=[filename]) |
||
19 | return default_downloader |
||
20 |
Cyclic imports may cause partly loaded modules to be returned. This might lead to unexpected runtime behavior which is hard to debug.