View source on GitHub
|
Registers a new default data_dir to search for datasets.
tfds.core.add_data_dir(
data_dir
)
When a tfds.core.DatasetBuilder is created with data_dir=None, TFDS
will look in all registered data_dir (including the default one) to
load existing datasets.
- An error is raised if a dataset can be loaded from more than 1 registered data_dir.
- This only affects reading datasets. Generation always uses the
data_dirkwargs when specified ortfds.core.constant.DATA_DIRotherwise.
Args | |
|---|---|
data_dir
|
New data_dir to register. |
View source on GitHub