# 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

相关文章:

  • 2021-07-11
  • 2021-06-27
  • 2022-12-23
  • 2021-10-13
  • 2021-04-28
  • 2021-05-14
  • 2021-09-01
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-11-18
  • 2021-04-22
  • 2021-06-29
  • 2021-08-25
  • 2021-11-18
相关资源
相似解决方案