Skip to content
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. Tried using dtype float64 for variable None #11

Open
camdirigo opened this issue May 7, 2017 · 3 comments

Comments

@camdirigo
Copy link

I am running iGAN_main.py on Windows 10 with an NVIDIA GeForce GTX 980 with the following command

python iGAN_main.py --model_name outdoor_64

and have added the following lines to iGAN_main.py
import os
os.environ["THEANO_FLAGS"] = "device=gpu, floatX=float32, nvcc.fastmath=True"

and I receive the following error
TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None

I have also added these THEANO_FLAGS to the .theanorc file and still receive this error. I have upgraded Theano to 0.9. Can someone please help me with this issue? I am happy to provide whatever further information is needed to solve this issue.

@junyanz
Copy link
Owner

junyanz commented Jul 29, 2017

Have you tried the command suggested by README THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

@linpianshang
Copy link

i have the same problem with camdirigo. when run
THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64
in the terminal . then i recevive the following error
'THEANO_FLAGS' 不是内部或外部命令,也不是可运行的程序或批处理文件。
Can someone please help me with this issue?

@ABHIJEET-YADAV
Copy link

Have you tried the command suggested by README THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

I am also facing the same problem. Did you get any solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants