python-kr.dev
python
pytorch
pandas
django
numpy
sqlalchemy
dataframe
arrays
list
deep-learning
Dark
jupyter
[1/1]
Python, PyTorch, Jupyter에서 GPU 메모리 지우는 방법 (커널 재시작 없이)
다음은 Python, PyTorch 및 Jupyter 환경에서 GPU 메모리를 지우는 방법입니다.1. torch. cuda. empty_cache() 사용torch. cuda. empty_cache() 함수는 PyTorch에서 GPU 메모리에 할당된 모든 캐시를 비웁니다
1