![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
toBeStrongCoder
这个作者很懒,什么都没留下…
展开
-
解决 nltk.download() 出现的 [Error 11004]getaddrinfo failed错误
stop words原创 2022-12-14 12:19:39 · 825 阅读 · 0 评论 -
模型和数据是否在GPU
在我们想把 GPU tensor 转换成 Numpy 变量的时候,需要先将 tensor 转换到 CPU 去,因为 Numpy 是。Scipy 是基于 Numpy 的科学计算库,用于数学、科学、工程学等领域,很多有一些高阶抽象和物理模型需要使用 Scipy。直接将用np生成的数组改为用torch生成就可以 torch生成的直接为tensor变量。上面左面的格式为numpy的格式 等式右边为tensor的形式 所以报出了这个错误。但是要转换的list里面的元素包含多维的tensor,应该使用。原创 2022-11-13 15:06:46 · 2836 阅读 · 0 评论 -
conda常用命令总结
conda常用命令原创 2022-10-08 21:05:53 · 45 阅读 · 0 评论 -
streamlit
streamlit学习原创 2022-10-08 21:02:00 · 486 阅读 · 0 评论 -
【无标题】
论文复现过程中遇到的一些问题原创 2022-09-23 23:38:50 · 90 阅读 · 0 评论 -
python 根据空格切割英文单词
python 根据空格切割英文单词原创 2022-09-11 22:36:15 · 1741 阅读 · 0 评论 -
tensorflow学习
tensorflow学习原创 2022-09-10 14:39:51 · 95 阅读 · 0 评论 -
python面向对象的语法
python基础语法知识学习原创 2022-07-14 09:02:27 · 222 阅读 · 0 评论 -
Pytorch入门
/usr/bin/python3.8 -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu下载成功:2,验证是否安装成功 如下图即为安装成功原创 2022-07-12 23:24:16 · 178 阅读 · 1 评论