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

Error while training using CORA dataset #22

Open
neocsbee opened this issue Jan 30, 2018 · 3 comments
Open

Error while training using CORA dataset #22

neocsbee opened this issue Jan 30, 2018 · 3 comments

Comments

@neocsbee
Copy link

neocsbee commented Jan 30, 2018

Hi,

I wanted to check if the Windows 10 installation was successful using the train.py script that came with the package.

Here are the messages and the error:

\keras-gcn-master\kegra>python train.py
Using Theano backend.
WARNING (theano.configdefaults): g++ not available, if using conda: conda install m2w64-toolchain
\AppData\Roaming\Python\Python27\site-packages\theano-1.0.1+unknown-py2.7.egg\theano\configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Loading cora dataset...
Dataset has 2708 nodes, 5429 edges, 1433 features.
Using local pooling filters...
Traceback (most recent call last):
File "train.py", line 55, in
H = GraphConvolution(16, support, activation='relu', kernel_regularizer=l2(5e-4))([H]+G)
File "Anaconda2\lib\site-packages\keras\engine\topology.py", line 573, in call
self.assert_input_compatibility(inputs)
File "Anaconda2\lib\site-packages\keras\engine\topology.py", line 446, in assert_input_compatibility
str(inputs) + '. All inputs to the layer '
ValueError: Layer graph_convolution_1 was called with an input that isn't a symbolic tensor. Received type: <class 'theano.sparse.basic.SparseVariable'>. Full input: [if{}.0, SparseVariable{csr,float32}]. All inputs to the layer should be tensors.

Thanks.

@tkipf
Copy link
Owner

tkipf commented Jan 30, 2018

I think the Theano backend is broken. You might want to test this with a TensorFlow backend?

@neocsbee
Copy link
Author

neocsbee commented Jan 30, 2018

I have limited privileges to install and test TensorFlow. I initially tried with CNTK and ended up with some error there too (See: microsoft/CNTK#2900). Will submitting this issue in Theano page help?

@svakulenk0
Copy link

works with TensorFlow. thank you!

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

3 participants