Commit 6bc8121
Fix Mac mps dataloader_num_workers > 1 causes RuntimeError: _share_filename_: only available on CPU (#38819)
* Update trainer.py: add multiprocessing_context for mps devices
* Fix multiprocessing context for MPS with workers
* Apply style fixes
---------
Co-authored-by: Marc Sun <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 3eba206 commit 6bc8121
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1026 | 1029 | | |
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
1030 | 1033 | | |
1031 | 1034 | | |
| 1035 | + | |
1032 | 1036 | | |
1033 | 1037 | | |
1034 | 1038 | | |
| |||
0 commit comments