BUG解决类
utuk
对话系统,自然语言处理,知识图谱。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pytorch之squeeze和unsqueeze的用法及注意事项
pytorch之squeeze和unsqueeze的用法及注意事项用法注意事项 用法 squeeze:对数据的维度进行压缩,去掉维数为1的的维度,比如是一行或者一列这种,一个一行三列(1, 10)的数去掉第一个维数为一的维度之后就变成(10)行。用法两种: b= a.squeeze(dim=index) 输入需要降维的维度index b = torch.squeeze(a, dim=index) 同上 a = torch.randn([1, 10], ) b= a.squeeze(0) print(原创 2021-06-15 19:28:36 · 930 阅读 · 0 评论 -
PermissionError: [Errno 13] Permission denied: ‘./models/‘
问题记录:PermissionError: [Errno 13] Permission denied: './models/'场景:原因分析:解决方案:参考 场景: ubuntu18.04 模型训练,没有权限的文件。 # 描述: 不需要root权限的文件不能访问: 错误提示: PermissionError: [Errno 13] Permission denied: ‘./models/’ 原因分析: 可能是系统默认这是一个高风险目录,Ubuntu linux ls 看到目录文件夹绿色高亮问题原创 2020-11-14 21:18:32 · 2086 阅读 · 0 评论 -
Resource xxx not found.Please use the NLTK Downloader to obtain the resource:
场景: 使用nltk库的时候找不到资源,即:Resource xxx not found.Please use the NLTK Downloader to obtain the resource: 描述: 问题如下: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain th原创 2020-11-16 15:22:00 · 1353 阅读 · 8 评论
分享