Skip to content

Commit d69632d

Browse files
tomvdwThe TensorFlow Datasets Authors
authored andcommitted
Use the file suffix when updating split
Currently it incorrectly sets it to the file format enum value, which may or may not correspond to the file suffix. PiperOrigin-RevId: 652773225
1 parent 9c4e001 commit d69632d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_datasets/core/dataset_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def set_file_format(
512512
continue
513513
updated_split_info = split_info.replace(
514514
filename_template=split_info.filename_template.replace(
515-
filetype_suffix=file_format.value
515+
filetype_suffix=file_format.file_suffix
516516
)
517517
)
518518
updated_split_infos.append(updated_split_info)

0 commit comments

Comments
 (0)