Skip to content

Commit 5b12259

Browse files
fineguyThe TensorFlow Datasets Authors
authored andcommitted
Fix DatasetInfo.read_from_directory()
PiperOrigin-RevId: 791107875
1 parent 797fad6 commit 5b12259

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
@@ -719,7 +719,7 @@ def read_from_directory(self, dataset_info_dir: epath.PathLike) -> None:
719719
)
720720

721721
self._identity = DatasetIdentity.from_proto(
722-
info_proto=parsed_proto, data_dir=dataset_info_dir
722+
info_proto=parsed_proto, data_dir=os.fspath(dataset_info_dir)
723723
)
724724

725725
# Update splits

0 commit comments

Comments
 (0)