Skip to content

Commit 4d1ffa9

Browse files
marcenacpThe TensorFlow Datasets Authors
authored andcommitted
Use conversion_utils.to_tfds_name to keep the current convention that xxx/yyy becomes xxx__yyy.
PiperOrigin-RevId: 660729647
1 parent 77f65ca commit 4d1ffa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorflow_datasets/core/utils/py_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ def make_valid_name(name: str) -> str:
555555
The function removes all forbidden characters outside of A-Za-z0-9_ and
556556
replaces them with an underscore.
557557
558+
Warning: if you want to convert a name to a valid TFDS name, prefer
559+
`conversion_utils.to_tfds_name` instead.
560+
558561
Args:
559562
name: The input string to sanitize.
560563

0 commit comments

Comments
 (0)