# CUDA TEST import torch x = torch.Tensor([1.0]) xx = x.cuda() print(xx) # CUDNN TEST from torch.backends import cudnn print(cudnn.is_acceptable(xx))
#注意!安裝目錄要英文目錄不要搞在中文目錄 !不然可能報些奇奇怪怪的bug!
windows上報錯:Could not find a version that satisfies the requirement torch==0.4.1->安裝pytorch0.4.1 :https://blog.csdn.net/weixin_41010198/article/details/103107083