Caffe2:python -m caffe2.python.operator_test.relu_op_test
1. 進行語句測試時候,出現問題,
????? 設置環(huán)境變量CUDA_VISIBLE_DEVICES
參考: cuda設置指定可見方法
????
在/etc/profile文件或者~/.bashrc末尾添加以下行:
?????? export CUDA_VISIBLE_DEVICES=0,1 ##僅顯卡設備0,1GPU可見??捎玫腉PU可通過nvidia-smi -L命令查看
2. 出現 ????ImportError: No module named hypothesis
???? pip install hypothesis
測試成功
/usr/lib/python2.7/dist-packages/numpy/core/numeric.py:301: FutureWarning: in the future, full(9, True) will return an array of dtype('bool')
? format(shape, fill_value, array(fill_value).dtype), FutureWarning)
Trying example: test_relu(self=<__main__.TestRelu testMethod=test_relu>, X=array([[-0.27628136, -0.27628136, -0.27628136],
?????? [-0.27628136, -0.27628136, -0.27628136],
?????? [-0.27628136, -0.27628136, -0.89451963]], dtype=float32), gc=, dc=[], engine=u'')
.
----------------------------------------------------------------------
Ran 1 test in 0.183s
OK
總結
以上是生活随笔為你收集整理的Caffe2:python -m caffe2.python.operator_test.relu_op_test的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 期待和宝宝见面的句子
- 下一篇: Caffe:导入caffePython-