摘要: 1. 安装vscode和cmake sudo apt install cmake 2. 安装vscode的cmake扩展 CMake CMake Tools 3. 在显示所有命令中执行build命令 ctrl+shift+P cmake:build # 快捷键F7 参考:https://zhuanl 阅读全文
posted @ 2022-08-12 15:28 盛夏夜 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1. 使用top查看内存信息 ps -ef | grep process # 查看进程id top -p process_id # 查看内存信息 2. 使用ps查看内存信息 ps -aux | grep process # USER PID %CPU %MEM VSZ RSS,其中RSS为物理内存 阅读全文
posted @ 2022-08-12 14:56 盛夏夜 阅读(3594) 评论(0) 推荐(1) 编辑
摘要: 1. 安装Pytorch pip install torch==1.8.2 torchvision==0.9.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cpu 运行Python import torch print(to 阅读全文
posted @ 2022-08-12 14:40 盛夏夜 阅读(175) 评论(0) 推荐(0) 编辑