摘要: 本文简要介绍如何在pytorch中安装引入tensorboardX,具体如何在代码中使用以后有机会再更新 首先肯定是需要安装tensorboardX,这个包使得我们可以在Pytorch中可视化训练过程,方便调参 (base) ~>pip install tensorboardx Collecting 阅读全文
posted @ 2020-03-15 19:34 lqchen 阅读(1830) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(6277) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(23357) 评论(0) 推荐(1) 编辑
摘要: torch.ge torch.ge(input, other, out=None) → Tensor 逐元素比较input和other,即是否 input>=otherinput>=other。 如果两个张量有相同的形状和元素值,则返回True ,否则 False。 第二个参数可以为一个数或与第一个 阅读全文
posted @ 2020-02-22 19:24 lqchen 阅读(4753) 评论(0) 推荐(0) 编辑
摘要: 0 anaconda conda 切换为清华大学镜像源 由于官方源下载速度太慢,所以切换清华镜像是很常见的conda安装方式,命令行中直接使用以下命令: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda 阅读全文
posted @ 2020-02-21 23:31 lqchen 阅读(2187) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 最近删除服务器目录,始终删除不了,总是Device or resource busy,查了资料,总结一下原因1.rm -rf {mydir}/ 删除不了,可能挂载了盘在这个目录,所以,删除不了,先卸载了目录上的盘,格式化挂载磁盘,然后在删除目录 出现上面情况,看谁在用这个目录或者占用,找出来,kil 阅读全文
posted @ 2019-05-21 07:30 lqchen 阅读(40865) 评论(0) 推荐(0) 编辑