-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'cupy.cudnn' has no attribute 'cudnn' #9
Comments
Most likely it is a version difference in Chainer. This code was written using Chainer v2. If it fails to run on v2, then please post a followup. Thanks! |
Me again I setup all packages listed in the requirements.txt in my virtualenv, but I run into this problem as following: /usr/bin/python3.5 /home/carrera/WebAR/ebnn/examples/alex.py Is this because cupy1.0.1 is not compatible with cuda9.0 or other problems ? Thanks |
I am not sure -- but it very well could be due to cuda9.0. I realize it can be a pain to get things setup correctly, especially for older versions. If I ever get time I may upgrade this to chainer 4, but it is always a constant maintenance issue of keeping projects up to date. |
Hello, Indeed for me the problem was due to the difference in Chainer versions. Under different versions, the hierarchy of the imported modules in Chainer can be a bit different plus some of the methods may have alternate names in the newer versions. I followed it through and got it working on my GPU. Regarding the file function_binary_convolution_2d.py above, it worked for me by changing the declaration in line 11 from I also used the help function on the imported module I used for my environment chainer==6.3.0 and cupy-cuda101==6.3.0. My cuda toolkit is 10.0.1. I'am attaching this modified file for references. |
Hello Brad
when I tried to run alex.py, I run into this 'AttributeError:module 'cupy.cudnn' has no attribute 'cudnn''
The detail is as following:
/usr/bin/python3.5 /home/carrera/WebAR/ebnn/examples/alex.py
/usr/local/lib/python3.5/dist-packages/h5py/init.py:34: FutureWarning: Conversion of the second argument of issubdtype from
float
tonp.floating
is deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type
.from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/home/carrera/WebAR/ebnn/examples/alex.py", line 4, in
import net
File "/home/carrera/WebAR/ebnn/examples/net.py", line 10, in
import ebnn.links as BL
File "/home/carrera/WebAR/ebnn/ebnn/links/init.py", line 77, in
from .link_binary_convolution import BinaryConvolution2D
File "/home/carrera/WebAR/ebnn/ebnn/links/link_binary_convolution.py", line 12, in
from ..functions.function_binary_convolution_2d import binary_convolution_2d
File "/home/carrera/WebAR/ebnn/ebnn/functions/function_binary_convolution_2d.py", line 11, in
libcudnn = cuda.cudnn.cudnn
AttributeError: module 'cupy.cudnn' has no attribute 'cudnn'
This is my environment : pycharm , chainer4.2.0 , cupy4.2.0 , cuda9.0 , cudnn7.0.5
Do you know how to solve this problem?
Thank you
Carrera
The text was updated successfully, but these errors were encountered: