pin_memory这样页面就不会被换出到硬盘。
1 | test_loader = DataLoader( |
热爱平淡,向往未知
pin_memory这样页面就不会被换出到硬盘。
1 | test_loader = DataLoader( |
1 | actions: Dict |
1 | def weight_init(m): |
1 | set nu |
/home/yinghong/.vim/colors/monokai.vim
1 | " Vim color file |
1 | ls | grep -v file.txt | xargs rm |
1 | from functools import partial |
1 | alias yank='yank | xclip -selection clipboard' |
1 | cat ~/.ssh/id_rsa.pub | xclip -selection clipboard |
1 | xdg-open $file |
1 | # 把所有以.json为后缀的文件mv到bak目录;如果json文件太多,直接mv *.json bak是不行的。 |