AssertionError: Torch not compiled with CUDA enabled

解决方法:
安装与自己电脑配置匹配的pytorch

检测cuda是否可用:

import torch 
print(torch.cuda.is_available())

运行结果:

True

版权声明:本文为CSDN博主「季南疯(JIM)」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_46235937/article/details/121885819

季南疯(JIM)

我还没有学会写个人说明!

暂无评论

发表评论

相关推荐

MMdetection之necks之FPN

MMdetection之necks之FPN 其横向为 1X1 的卷积,向下为 上采样 Specifically, for ResNets [16] we use the feature activations output by

AlphaPose阅读

PixelShuffle DUC(Dense Upsampling convolution)博客Pytorch的可视化,使用 Netron Netron 安装:pip install n