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
ERROR (theano.gof.opt): Optimization failure due to: constant_folding (python 3.6 issue ?) #5765
Comments
dump file |
The compile is ok if done in CPU mode Compilation starts at 2017-03-25 20:29:11 |
The compile is ok too if using device=gpu The issue is limited to new backend device=cuda0 |
This error hide another one. Can you try this PR that remove the second error and will allow you to see the first error? |
Another fix was merged. Update Theano and you should see the original error. |
Just updated Theano from github Here is the current status:
|
This seems related to the way pygpu is installed on Windows. (1) Whenever libgpuarray is compiled from its git source code (using in this cas Visual Studio 2015 and Cmake), it gets installed as follows:
(2) Running test via python -c "import pygpu;pygpu.test()" is fine provided the environment variable
(3) I did manage to instruct the Theano compiler to fetch the header gpu/array.h by creating the environment variable: (4) then creating the environment variable LIBRARY_PATH pointing to C:/Program Files/libgpuarray/lib/ fixes the remaining error BOTTOM LINE: For the benefit of users that are generating libgpuarray from thje gpuarray github directory on Windows, I suggest to clarify the procedure (ie directories and environment variables) |
Hi I just installed a new windows 10 configuration with exactly the same theano/lasagne code than runs properly on another similar machine. Both using the latest versions of theano/lasagne and gpuarray.
On the new one at compile time, I'm getting a bunch or errors:
ERROR (theano.gof.opt): Optimization failure due to: constant_folding
....
TypeError: ("a bytes-like object is required, not 'str'", '[GpuFromHost(TensorConstant{(1,) of 1e-06})]')
(see below and attached dump)
which doesn't occur on the other configuration.
As far as I can see the only difference is that the new one uses Anaconda Python 3.6 versus Anaconda Python 3.5.
Here is part of the dump:
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Using cuDNN version 5105 on context None
Mapped name None to device cuda0: GeForce GTX 1080 (0000:01:00.0)
theano: 0.9.0.dev-b3d19ce8e8d7cdf87c3f84599be81647803aa1f6
numpy: 1.11.3
pygpu: 0.6.2
lasagne: 0.2.dev1
The text was updated successfully, but these errors were encountered: