![240](https://cdn2.jianshu.io/assets/default_avatar/3-9a2bcc21a5d89e21dafc73b39dc5f582.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP屬地:上海
1扁达、 getattr(getattr(a, "b"), "c") 2峡谊、 import operator operator.attrgetter(...
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1 方法: ...
解決辦法: eps 改為 1e-4 (默認的1e-8在half下會round成0衅澈,除以0時會出現(xiàn)Nan)
在代碼中添加以下兩行可以解決: torch.backends.cudnn.enabled = True torch.backends.cudnn...
采用 shell 腳本進行 caffe 訓練時他巨,可以重映射輸出訓練過程到train.log文件澡匪,如 $CAFFE_ROOT/build/tool...
安裝 使用pip進行安裝 # whoami at iamwho in [~]$ pip install virtualenvwrapper -i...
cmake -D PYTHON_EXECUTABLE=/usr/bin/python ..
import pdb;pdb.set_trace() #引入pdb代碼片段符相,不需要時拆融,可以注掉 常用命令 break 或 b:設置斷點 cont...
sudo du -h --max-depth=0 *