-
Notifications
You must be signed in to change notification settings - Fork 128
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
TypeError: CudaNdarrayType only supports dtype float32 for now. #5
Comments
Hmm. This may be a new issue. What's going is that all variables should be |
Here are the versions: Name: numpy Name: Theano Name: Lasagne and Python 2.7.12 As a cross check of my installation of lasagne and theano, I ran the following lasagne example on https://github.com/Lasagne/Lasagne/blob/master/examples/mnist.py my laptop and there weren't any issues. Also simple theano code from the tutorials seem to work. Some of the tests from the theano tests did report errors. python -c "import theano; theano.test()" | tee theano-test.txt I've attached the last bit of the output. BTW I don't have CUDA and my macbook has an AMD Radeon video card - I don't have OpenCL setup with Theano either. I would rather simply use the CPU (no GPU acceleration) for the moment. My theano settings has the default device set to CPU as per, I'm not fully aware of the internals here but I was just wondering why voxnet still complains of a TypeError: CudaNdarrayType ... given that theano is set to use the CPU. Is there any option or setting in voxnet to disable GPU acceleration? Thanks. |
I have the same issue with the following verisons and callstack: Traceback (most recent call last): |
The issues seems to be that the author explicitly call
in voxnet/voxnet/layers.py |
The issue can be resolved using a .theanorc file in the home directory. .theanorc |
I believe KazNX method is forcing the script to run on GPU and let Theano fall back to use CPU. I still AttributeError: 'module' object has no attribute 'downsample', I believe because author using code that explicitly requires Nvidia cards
|
I get the error: NameError: global name 'HostFromGpu' is not defined with the above .theanorc [global] |
You can resolve with overriding your .theanorc defaults by: |
I changed but it doesn't work.... I put the .theanorc at my home directory (not working directory), but still get errors (TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None), any help would be greatly appreciated!!! |
I had the same issue as KazNX and I was able to resolve it using the following theano flag options:
It gave errors if I also specified the cnmem as acaglayan suggested:
I also had the error with "HostFromGpu", it is due to the fact that it does not find GPU functionality. You can resolve it as follows (assumes your cuda is installed inside /usr/local/cuda-8.0/ - adapt accordingly)
I reiterate on putting the entire script together
|
Same problem here. @dimatura can this be updated, so it works again? Or could you specify more clearly which versions of Theano and Lasagne it worked with? That might also help. |
The suggestion from @DBobkov helped, I guess, so thanks. Unfortunately there are now other issues, probably coming from Theano. I guess this is pretty much unuseable with current versions of the needed packages and using old ones does not help, either because it might cause compatibility issues with newer versions of CUDA for example. |
Hi
I'm just trying to run example given in the readme file.
Everything works until I get to the point where ./scripts/train.py is called where I get this error when I try to train it on the sample data.
$ python train.py config/shapenet10.py shapenet10_train.tar
...
TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None
I'm working on a Mac with Python 2.7.11. I have theano and lasagne installed.
Am I missing something here?
Thanks in advance
The text was updated successfully, but these errors were encountered: