日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

Caffe2:python -m caffe2.python.operator_test.relu_op_test

發(fā)布時間:2023/12/31 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Caffe2:python -m caffe2.python.operator_test.relu_op_test 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1. 進(jìn)行語句測試時候,出現(xiàn)問題,

????? 設(shè)置環(huán)境變量CUDA_VISIBLE_DEVICES

參考: cuda設(shè)置指定可見方法

????

在/etc/profile文件或者~/.bashrc末尾添加以下行:

?????? export CUDA_VISIBLE_DEVICES=0,1 ##僅顯卡設(shè)備0,1GPU可見。可用的GPU可通過nvidia-smi -L命令查看


2. 出現(xiàn) ????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


總結(jié)

以上是生活随笔為你收集整理的Caffe2:python -m caffe2.python.operator_test.relu_op_test的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。