![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
文章平均质量分 54
ys-li
研究生在读
展开
-
双系统 Linux 硬盘挂载问题
双系统 Linux硬盘挂载问题解决方案解除硬盘占用修复 Windows 的 NTFS 磁盘附:正常的硬盘挂载流程本文主要解决双系统 Linux 硬盘挂载问题报错如下Mount is denied because the NTFS volume is already exclusively opened.The volume may be already mounted, or another software may use it whichcould be identified for exam原创 2021-06-16 10:25:21 · 1098 阅读 · 0 评论 -
问题解决:Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the
pytorch训练过程中出现如题错误的解决方案常规解决方案从报错问题描述中可以找到错误原因输入的数据类型为torch.cuda.FloatTensor,说明输入数据在GPU中模型参数的数据类型为torch.cuda.FloatTensor,说明模型还在CPU里问题原因搞清楚了,模型没加载到CPU,在代码中加一行语句就可以了model = model.cuda()model = model.to('cuda')model.cuda()model.to('cuda')上面四行任选一,原创 2021-02-04 11:40:45 · 63824 阅读 · 86 评论