Switch gcc versions between 4.9 and 5.4 or over
ref: https://codeyarns.com/2015/02/26/how-to-switch-gcc-version-using-update-alternatives/
after setting
$ sudo update-alternatives --config gcc
2018년 5월 15일 화요일
2018년 5월 1일 화요일
Errors in Caffe
Traceback (most recent call last):
File "Scripts/compute_bn_statistics.py", line 15, in <module>
import caffe
File "/home/morinjwang/DL/caffe-segnet-cudnn5/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/morinjwang/DL/caffe-segnet-cudnn5/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: dynamic module does not define init function (init_caffe)
Traceback (most recent call last):
File "Scripts/compute_bn_statistics.py", line 15, in <module>
import caffe
File "/home/morinjwang/DL/caffe-segnet-cudnn5/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/morinjwang/DL/caffe-segnet-cudnn5/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: dynamic module does not define init function (init_caffe)
check if you compile your Caffe library using python 2.7 OR python 3.*
피드 구독하기:
덧글 (Atom)