摘要: 记录一些我阅读过的书籍和论文等材料 阅读全文
posted @ 2019-11-19 21:34 MrDoghead 阅读(272) 评论(0) 推荐(0) 编辑
摘要: # save x = torch.tensor([1,2,3]) np.savez("./tmp.npz",x) # save dict save_inp_file = "./text.npz" a = [torch.tensor([i]) for i in range(5)] b = [torch 阅读全文
posted @ 2022-01-10 17:45 MrDoghead 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 【转】https://blog.csdn.net/ballack_linux/article/details/71036072 很多人使用vim的时候, 会发现函数跳转的功能没有,怎么办?vim提供了强有力的函数跳转的插件功能! 首先要安装ctags, 在ubuntu下直接输入 sudo apt-g 阅读全文
posted @ 2022-01-07 10:56 MrDoghead 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 登录aws ssh -i key_AWSgpus.pem ubuntu@xxxxxx 退回本地 control+D 取文本从m到n列 cat log16 | cut -c m-n > xx 查看空间 df -h 查看文件大小 du -sh * 查看卡 nvidia-smi 查看gpu gpustat 阅读全文
posted @ 2021-09-17 16:45 MrDoghead 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 什么是Tmux Tmux 是一个终端复用器(terminal multiplexer),非常有用,属于常用的开发工具。 整理几个常用的tmux命令 1,输入命令tmux 使用工具 2,上下分屏:ctrl + b 再按 " 3,左右分屏:ctrl + b 再按 % 4,切换屏幕:ctrl + b 再按 阅读全文
posted @ 2021-09-17 16:37 MrDoghead 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 生成文件 pip freeze > requirements.txt 从requirements.txt安装依赖库 pip install -r requirements.txt 阅读全文
posted @ 2021-09-17 16:35 MrDoghead 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 打算陆陆续续梳理一些docker的使用心得,从安装到使用到各种奇奇怪怪的功能以及使用中遇到的困难。 参考:https://www.runoob.com/docker/docker-tutorial.html 安装 curl -fsSL https://get.docker.com | bash -s 阅读全文
posted @ 2021-09-17 16:33 MrDoghead 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Netron是使用研究onnx网络结构很常用的工具,安装和使用都非常简单。 安装 pip install netron 本地使用 netron demo.onnx 远程使用 登录服务器时: ssh -i key_AWSgpus.pem -L 8080:127.0.0.1:8080 ubuntu@xx 阅读全文
posted @ 2021-09-17 16:24 MrDoghead 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 推荐一些我自己平时在用的高效vim插件,并配有安装方法。 1. Vim-plug Vim-plug 是一个自由、开源、速度非常快的、极简的 vim 插件管理器。它可以并行地安装或更新插件。你还可以回滚更新。它创建shallow clone最小化磁盘空间使用和下载时间。它支持按需加载插件以加快启动时间 阅读全文
posted @ 2021-09-09 14:12 MrDoghead 阅读(9135) 评论(0) 推荐(1) 编辑
摘要: 问题描述 Mac下设置第一语言为English 在Terminal或者iTerm2上登录远端Linux时,Linux的prompt提示 setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 登录Lin 阅读全文
posted @ 2021-09-09 11:24 MrDoghead 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 我们都知道在 ubuntu 中 root 用户的权限是非常大的,为了防止因权利过大而产生的误操作问题,一般都会新建一个用户,并将该用户添加到 sudo 组,以后就用这个新用户登录。 如何创建用户 切换为root用户为了获取创建用户的权限 ubuntu@T4:~$ sudo su 添加一个新用户(如用 阅读全文
posted @ 2021-09-09 10:35 MrDoghead 阅读(1061) 评论(0) 推荐(0) 编辑