查看Pytorch版本以及是否支持GPU加速 2022-09-30 10:05:49 查看Pytorch版本import torchprint(torch.__version__)>>>1.4.0 #这里便是torch版本查看Pytorch是否支持GPU加速import torchprint(torch.cuda.is_available())>>> True #这便代表此Pytorch支持GPU加速