Skip to content

Commit 7f57e5b

Browse files
committed
fix b9d0c8a data loader macos
1 parent 39ba737 commit 7f57e5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
processes = {}
4343
offsets = {}
4444

45-
set_start_method('fork')
45+
import platform
46+
if platform.system()=='Darwin':
47+
from multiprocessing import set_start_method
48+
set_start_method('fork')
4649

4750
def term(signum, frame):
4851
for ps in processes.values():

0 commit comments

Comments
 (0)