메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

파이썬 gpu 정보: 편집 역사

DB CAFE

차이 선택: 비교하려는 판의 라디오 버튼을 선택한 다음 엔터나 아래의 버튼을 누르세요.
설명: (최신) = 최신 판과 비교, (이전) = 이전 판과 비교, 잔글= 사소한 편집

2024년 10월 2일 (수)

  • 최신이전 01:032024년 10월 2일 (수) 01:03Dbcafe 토론 기여 1,955 바이트 +1,955 새 문서: = 파이썬에서 GPU 정보와 GPU 사용 유무 확인 = == 파이토치 이용 torch == * 파이토치 설치 확인 <source lang=python> pip install torch </source> <source lang=python> import torch print(torch.cuda.is_available()) print(torch.cuda.device_count()) print(torch.cuda.get_device_name(torch.cuda.current_device())) </source> === 파이토치 방법 2 === <source lang=python> from torch import cuda assert cuda.is_available() assert cuda.device_count() > 0 print(...