0%
torch 错误总结
Posted on Edited on Views:
###RuntimeError: tried to construct a tensor from a int sequence, but found an item of type numpy.int64 at index (0)
Using .tolist() for numpy array as follows.
python加载顺序
Posted on Edited on Views:
sshfs 使用
Posted on Edited on Views:
1 | pgrep -lf sshfs |
proxychains 配置
Posted on Edited on Views:
安装
1 | sudo apt-get install proxychains |
编辑conf文件
编辑/etc/proxychains.conf
1 | sudo vim /etc/proxychains.conf |
在最后的ProxyList里加入Shawdowsocks的代理设置:
1 | socks5 127.0.0.1 1080 |
- 编辑/usr/bin/proxychains
1
2
3
4修改
LD_PRELOAD=libproxychains.so.3
为(根据自己系统里的libproxychains.so.3设置)
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3 - 使用,只需要在运行程序的命令前加上proxychains即可
1
proxychains dropbox start -i
sudo pkill python
Posted on Edited on Views:
gpu 显卡进程占用
1 | sudo pkill python |
安装sshfs
Posted on Edited on Views:
mac
1 | brew cask install osxfuse |
tar.ba2 解压
Posted on Edited on Views:
1 | tar -jxvf archive_name.tar.bz2 |
torch 多gpu
Posted on Edited on Views:
1 | model = torch.nn.DataParallel(model).cuda() |
nvidia-smi 幽灵进程
Posted on Edited on Views:
1 | sudo pkill python |