- 博客(15)
- 收藏
- 关注
原创 Could not load library libcudnn_cnn_train.so.8.
翻译过来就是安装编译好的Pytorch会拥有自己的cuda依赖库(包括cudnn),所以需要删掉本地已经安装好的cudnn。屏蔽掉本地cuda cudnn相关的文件(个人建议最好备份到指定目录下面,而不是直接删掉)你可以将这些文件挪到指定目录。
2024-01-17 11:52:29
956
原创 Python中排序函数sort/sorted的坑:cmp函数中return True/False排序不起作用
Python sort/sorted 自定义排序cmp函数如果return True/False,排序函数不起作用,必须return 带符号数字
2023-12-23 17:12:27
591
1
原创 Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device存储空间不够存储空间不够第一种可能情况是anaconda或者python所在的位置没有存储空间了,导致没有地方存放。这种情况,我都是重新安装anaconda到一个有足够大的存储空间的目录。第二种可能情况是tmp目录没有存储空间了,ubuntu系统可以通过修改临时目录解决 export TMPDIR=tmp路径(可以临时创建一个
2021-07-19 12:00:29
1035
1
原创 Error: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same
@[TOC](RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same)pytorch使用中出现以上问题解决办法以上错误是因为部分网络部分模块用列表list放置,没有被nn.ModuleList()处理;导致pytorch无法识别,并放到cuda上;利用nn.ModuleList()可解决:class OneModule(nn.Module):de
2020-12-11 22:03:56
784
1
原创 ubuntu18.04服务器安装pytorch=0.4.1
ubuntu18.04服务器安装pytorch=0.4.1, torchvision=0.2.1.pip3 install torch0.4.1 torchvision0.2.1 -f https://download.pytorch.org/whl/torch_stable.html --user参考网址:https://pytorch.org/get-started/previous-versions/
2020-10-20 19:36:01
731
原创 linux rm命令无法删除目录,显示Device or resource busy:
linux rm命令无法删除目录,显示Device or resource busy:lsof +d 待删除的目录kill -9 上述命令列出的进程号参考:https://www.jianshu.com/p/0e42a76fc90c
2020-10-20 15:09:38
3206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人