
Pytorch
ChinaZm
这个作者很懒,什么都没留下…
展开
-
Latex排版Algorithm之algorithmic,algorithmicx,algorithm2e
algorithmic是第一代算法排版环境algorithmicx是第二代算法排版环境algorithm2e是第三版算法排版环境以上三种算法排版环境中algorithmic比较老了,现在用的较多的是algorithmicx和algorithm2e排版环境。并且这三种排版环境不能混用。我个人比较喜欢algorithm2e的排版样式。具体参考这个链接algorithmicx实例\documentclass{article}\title{Test title}\author{ Mary\th.原创 2022-03-01 18:17:30 · 9580 阅读 · 6 评论 -
The kernel appears to have died. It will restart automatically
在jupyter notebook上利用plt.subplot()画图时出现此错误,由于已经把数据转换到cpu的numpy格式,因此此错误不是GPU或者cuda的问题。期初我以为是内存不够的问题,在网上查了下没有好的解决方法,最后在stackoverflow上找到了一些解决方法,尝试了下。解决了我的问题。非常简单:升级下numpy版本,或者重装下,效果一样。pip3 install -U numpy更新numpy版本,然后重启下kernel。...原创 2021-10-28 11:35:01 · 1141 阅读 · 1 评论 -
[WinError 127] 找不到指定的程序。 Error loading “D:\A\lib\site-packages\torch\lib\c10_cuda.dill
可以参考一下几种解决方法:1、可能由于缺少VC++ Redistributable,在错误中会提示你下载并且提供了下载地址,只需要下载并默认安装即可;2、方法1如果不行,可以更新numpy;参考这个连接3、或者使用pip install intel-openmp,试试,参考这个连接。...原创 2021-04-15 17:55:09 · 9078 阅读 · 3 评论 -
使用Matplotlib和Seaborn生成热力图注意问题
使用Matplotlib和Seaborn生成热力图注意问题由于matplotlib生成热力后图默认的后端(backend)是交互式的,当我们不需要展示,仅仅想要保存到本地时,可以更改后端,即:import matplotlib as mplimport matplotlib.pyplot as pltmpl.use("Agg") #修改依赖的后端(backend)import seaborn as sns改成Agg支持png格式,改成PDF支持pdf格式,或者SVG支持svg,heatmap原创 2021-04-15 16:20:59 · 935 阅读 · 0 评论