티스토리 뷰
PyTorch의 DataLoader는 num_workers > 0일 때,
데이터 로딩을 별도의 subprocess(자식 프로세스) 로 실행하는데
그런데 그 subprocess에서는 input() 같은 interactivity가 불가능함
DataLoader의 num_wokrers 옵션을 0이 아닌 값을 주고 data class의 내부에 input() 함수를 사용했다면 EOFError: EOF when reading a line에러를 보게된다.
해결은 간단하다 DataLoader 코드에 num_workers 옵션을 0을 주면 된다.
'Computer > 이게 왜 안되지?' 카테고리의 다른 글
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 3b1b
- manim library
- MorganCircularfingerprint
- 논문리뷰
- manimtutorial
- Matrix algebra
- marginal likelihood
- MLE
- 3B1B따라잡기
- eigenvalue
- MatrixAlgebra
- antigen antibody interaction prediction
- 선형대수
- 항원항체결합예측모델
- dataloader
- nanobody
- 기계학습
- 최대우도추정
- eigenvector
- 나노바디
- 베이즈정리
- 이왜안
- 파이썬
- Manimlibrary
- elementry matrix
- manim
- 인공지능
- 백준
- 오일석기계학습
- ai신약개발
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
글 보관함