Setting, Error/Python, Python Library

Pytorch GPU 동작 확인

Juheon Kwak 2022. 2. 13. 01:49

$ import torch

$ torch.cuda.is_available()  ( cuda 먼저 확인 / False 뜨면 gpu 버전에 맞게 pytorch 재설치 )

$ torch.cuda.get_device_name()