查看Pytorch版本以及是否支持GPU加速

查看Pytorch版本

import torch
print(torch.__version__)
>>> 1.4.0 #这里便是torch版本

查看Pytorch是否支持GPU加速

import torch
print(torch.cuda.is_available())
>>> True #这便代表此Pytorch支持GPU加速

你可能感兴趣的:(Pytorch,cv)