Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Better fix for windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Apr 22, 2021
1 parent 3bbfb16 commit b1310e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/data/data_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(

# TODO: figure out best solution for setting num_workers
if num_workers is None:
if platform.system() == "Darwin" or os.getenv("FLASH_TESTING", "0") == "1":
if platform.system() == "Darwin" or platform.system() == "Windows":
num_workers = 0
else:
num_workers = os.cpu_count()
Expand Down

0 comments on commit b1310e5

Please sign in to comment.