会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MT blog
博客园
首页
新随笔
联系
管理
订阅
2020年3月15日
PyTorch使用tensorboardX可视化训练过程
摘要: 本文简要介绍如何在pytorch中安装引入tensorboardX,具体如何在代码中使用以后有机会再更新 首先肯定是需要安装tensorboardX,这个包使得我们可以在Pytorch中可视化训练过程,方便调参 (base) ~>pip install tensorboardx Collecting
阅读全文
posted @ 2020-03-15 19:34 lqchen
阅读(1845)
评论(0)
推荐(0)
2020年3月14日
PyTorch常用函数:torch.topk; torch.index_select; torch.lt
摘要: torch.topk torch.topk(input, k, dim=None, largest=True, sorted=True, out=None) -> (Tensor, LongTensor) pytorch中文官网文档:http://www.mamicode.com/info-deta
阅读全文
posted @ 2020-03-14 21:21 lqchen
阅读(6381)
评论(0)
推荐(0)
2020年2月22日
PyTorch张量类型转换
摘要: 1 numpy与CUDA之间的转换 1.tensor张量与numpy相互转换 tensor >numpy import torcha=torch.ones([2,5]) tensor([[1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.]])# ***********
阅读全文
posted @ 2020-02-22 19:29 lqchen
阅读(23547)
评论(0)
推荐(1)
PyTorch常用函数:torch.ge; torch.gt; torch.le; equal; eq
摘要: torch.ge torch.ge(input, other, out=None) → Tensor 逐元素比较input和other,即是否 input>=otherinput>=other。 如果两个张量有相同的形状和元素值,则返回True ,否则 False。 第二个参数可以为一个数或与第一个
阅读全文
posted @ 2020-02-22 19:24 lqchen
阅读(4790)
评论(0)
推荐(0)
2020年2月21日
win10笔记本安装PyTorchGPU+CUDA+cuDNN
摘要: 0 anaconda conda 切换为清华大学镜像源 由于官方源下载速度太慢,所以切换清华镜像是很常见的conda安装方式,命令行中直接使用以下命令: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda
阅读全文
posted @ 2020-02-21 23:31 lqchen
阅读(2246)
评论(0)
推荐(0)
2020年1月14日
使用APT (A reference-based metric to evaluate the accuracy of pronoun translation)评估机器翻译中代词翻译(pronoun translation)的质量
摘要: Chapter1 跑通example 1.1 运行环境及依赖包 运行在python3.68环境。首先将需要的包pip install 比如 ConfigParser 1.2 github下载代码 输入命令行git clone https://github.com/LinqingChen/APT.gi
阅读全文
posted @ 2020-01-14 10:54 lqchen
阅读(352)
评论(0)
推荐(0)
2019年5月21日
Linux无法删除文件夹 Device or resource busy
摘要: 最近删除服务器目录,始终删除不了,总是Device or resource busy,查了资料,总结一下原因1.rm -rf {mydir}/ 删除不了,可能挂载了盘在这个目录,所以,删除不了,先卸载了目录上的盘,格式化挂载磁盘,然后在删除目录 出现上面情况,看谁在用这个目录或者占用,找出来,kil
阅读全文
posted @ 2019-05-21 07:30 lqchen
阅读(41688)
评论(0)
推荐(0)
公告