pytorch: gpu 선택해서 사용하는 방법

djlee·2023년 3월 13일
0

다음과 같이 gpu 번호를 설정하면 돼요.

select_gpu = 1
torch.cuda.set_device(select_gpu)

0개의 댓글