Skip to content

Commit d975293

Browse files
author
The TensorFlow Datasets Authors
committed
Merge pull request #5462 from lbo462:master
PiperOrigin-RevId: 655488274
2 parents d5d7bb2 + 5de600f commit d975293

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tensorflow_datasets/core/load.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,10 @@ def load(
587587
would use the `FooBar` dataset passing the keyword arguments `a=True` and
588588
`b=3` (for builders with configs, it would be `'foo_bar/zoo/a=True,b=3'`
589589
to use the `'zoo'` config and pass to the builder keyword arguments
590-
`a=True` and `b=3`).
590+
`a=True` and `b=3`). If the dataset name features a `/` in its name, one
591+
should replace it with `__`, as this might happen with certain namespaces
592+
such as huggingface (example: "huggingface:microsoft/cats_vs_dogs" becomes
593+
"huggingface:microsoft__cats_vs_dogs".)
591594
split: Which split of the data to load (e.g. `'train'`, `'test'`, `['train',
592595
'test']`, `'train[80%:]'`,...). See our [split API
593596
guide](https://www.tensorflow.org/datasets/splits). If `None`, will return

0 commit comments

Comments
 (0)