File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tensorflow_datasets/scripts/cli Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,14 @@ def _get_info_for_dirs_to_convert(
320
320
os .fspath (to_dir ),
321
321
)
322
322
return builder .info
323
+ else :
324
+ logging .info (
325
+ 'The file format to convert to (%s) is not an alternative file format'
326
+ ' of the dataset in %s. Converting the dataset.' ,
327
+ out_file_format .value ,
328
+ os .fspath (from_dir ),
329
+ )
330
+ return builder .info
323
331
324
332
325
333
def _convert_dataset_dirs (
@@ -343,7 +351,6 @@ def _convert_dataset_dirs(
343
351
desired.
344
352
"""
345
353
logging .info ('Converting %d datasets.' , len (from_to_dirs ))
346
-
347
354
found_dataset_versions : dict [epath .Path , dataset_info .DatasetInfo ] = {}
348
355
349
356
if num_workers > 1 :
@@ -378,7 +385,6 @@ def _process_get_infos(from_to_dir):
378
385
)
379
386
if info is not None :
380
387
found_dataset_versions [from_dir ] = info
381
-
382
388
convert_dataset_fn = functools .partial (
383
389
_convert_dataset ,
384
390
out_file_format = out_file_format ,
You can’t perform that action at this time.
0 commit comments