AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL
🐛 Fix bug: mp.set_start_method, forkserver for Linux, and spawn for WinOS
Ouverte
bug
- Langage dominant
- Python
- Étoiles
- 4.4k
- Forks
- 978
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
https://github.com/AI4Finance-Foundation/ElegantRL/blob/3721f6e677ea5a2720be23bbb18855a2f06767d7/elegantrl/train/run.py#L99
In order to be compatible with the WinOS system, it needs to make this change:
```
method = 'spawn' if os.name == 'nt' else 'forkserver' # os.name == 'nt' means Windows NT operating system (WinOS)
mp.set_start_method(method=method, force=True)
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.