Skip to content

Commit 7a9e37a

Browse files
committed
update
1 parent fd92ab9 commit 7a9e37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/data/processing/functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _get_input_dir(inputs: Sequence[Any]) -> Optional[str]:
7373
def _get_default_num_workers() -> int:
7474
if torch.cuda.is_available():
7575
return torch.cuda.device_count()
76-
return os.cpu_count()
76+
return os.cpu_count() or 1
7777

7878

7979
class LambdaDataTransformRecipe(DataTransformRecipe):

0 commit comments

Comments
 (0)