上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页
摘要: 除了类的私有属性__private_attrs、私有方法__private_method之外,还有类的专有方法,包括:__init__、__del__、__len__、...... 对于类的专有方法的说法之一是:在合适的时间,会自动调用其魔法方法,比如初始化时调用__init__,具体见链接。 在C 阅读全文
posted @ 2022-03-06 21:44 kuaqi 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1、调试时,执行到 for i, data_batch in enumerate(data_loader):时,第一次ok,第二次卡主了。网上给出的解决方法是将加载器DataLoader参数num_workers设为1 batch_size = num_gpus * batch_size num_w 阅读全文
posted @ 2022-03-01 00:47 kuaqi 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 如果是在docker中安装,步骤如下: (1)docker pull pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel。这里必须是-devel后缀!因为编译时需要NVCC,只有-devel中有NVCC。cuda11.2有问题。 (2)按着NVIDIA/apex中 阅读全文
posted @ 2022-02-22 11:37 kuaqi 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 1、docker系统:Debian GNU/Linux 11 cat /etc/issue 2、apt-get更改国内安装源:以下是debian系统的,区别ubuntu deb http://mirrors.ustc.edu.cn/debian/ buster main deb-src http:/ 阅读全文
posted @ 2022-02-21 22:24 kuaqi 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 安装 TypScript for Visual Studio 2015 :https://www.microsoft.com/en-us/download/details.aspx?id=48593 阅读全文
posted @ 2022-02-19 17:31 kuaqi 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 来源:https://blog.csdn.net/u010510962/article/details/109508896 1、可以直接执行/home/wq/anaconda3/bin/conda。 2、修改普通用户的环境变量,添加conda、pip等路径,是vim ~/.bashrc么? 3、普通 阅读全文
posted @ 2022-02-17 21:00 kuaqi 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1、launch.js 1)生成launch.js 2)一般内容格式: 3)命令: (1)“program”:你的程序编译出来的可执⾏⽂件(⽤cmake先编译出⼀个可执⾏⽂件,只需要第⼀次,⼀旦后续配置好了就直接 按F5) (2)“preLaunchTask”:新添加⼀个选项为build,这样每次F 阅读全文
posted @ 2022-01-11 00:46 kuaqi 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 来源:https://docs.microsoft.com/zh-cn/windows/ai/directml/gpu-cuda-in-wsl :https://www.jianshu.com/p/2b79a32bf416 主要安装过程: 适用于 Linux 的 Windows 子系统安装指南 (W 阅读全文
posted @ 2022-01-06 19:54 kuaqi 阅读(1625) 评论(0) 推荐(0) 编辑
摘要: 来源:https://www.cnblogs.com/enrio/p/14222648.html 1、说明:好像只能增大的,不能减小 2、压缩虚拟磁盘 (1)先将WSL2关闭 wsl.ext --list --verbose wsl.exe --terminate Ubuntu-18.04 (2)使 阅读全文
posted @ 2022-01-06 16:39 kuaqi 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 1、查看包含软件包位置、软件安装路径。 # 查看包含软件包的所有位置 dpkg -L softwarename # 显示软件安装路径 dpkg -S softwarename 2、查看软件版本 dpkg -l softwarename apt-cache show software 3、安装软件 s 阅读全文
posted @ 2022-01-05 15:07 kuaqi 阅读(32) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页