일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- logistic regression
- docker attach
- docker exec
- Multi-Resolution Networks for Semantic Segmentation in Whole Slide Images
- IVI
- 히비스서커스
- ssh
- 티스토리챌린지
- docker
- GIT
- 사회조사분석사2급
- Jupyter notebook
- cs231n
- 오블완
- AIFFEL
- HookNet
- Decision Boundary
- aiffel exploration
- 기초확률론
- 프로그래머스
- vscode
- 도커
- CellPin
- cocre
- numpy
- 백신후원
- 코크리
- WSSS
- airflow
- Pull Request
Archives
- Today
- Total
목록Cannot re-initialize CUDA in forked subprocess (1)
히비스서커스의 블로그
[Pytorch] Airflow 사용 시 error: RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method 에러
상황 airflow의 GPU를 사용하는 DAG 코드를 작성하다가 다음과 같은 에러를 마주쳤다. 코드 from airflow import DAG from airflow.operators.python import PythonOperator from datetime import datetime from models import our_model import torch test = DAG( dag_id = 'test', start_date = datetime(2022,5,5), catchup = False, schedule = '@once' ) train = PythonOperator( task_id = 'train', python_callable = train, dag = test ) def train(): ..
Programming/Python
2023. 6. 1. 23:23