-
Notifications
You must be signed in to change notification settings - Fork 266
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
All inputs to the layer should be tensors. #31
Comments
Maybe this is a keras version issue. Can you try with v. 1.0.9? |
Keras version is 2.2.0. I'm using the Anaconda environment. |
Thanks - it could be that 2.2.0 is not working due to some change in the API. Can you try v.1.0.9? |
I think I've just get where the code fails with this version of Keras. Creating the Input layers with no specification about sparsity, everything works perfectly. Is this correct? Thanks |
Interesting, maybe the new keras version doesn't need the sparsity argument anymore for sparse inputs. Glad you could figure it out. Let's leave this issue open so others can find it in case they run into the same problem. |
Hi, |
I was able to solve this error. Probably my solution helps. Hope this helps !! |
Thank you @thisishardik, it's work for me!
|
Hi,
I'm trying to use GCN for graph learning, but when I run your train.py script I get the following error:
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 "/Users/aloreggia/Documents/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 575, in call
self.assert_input_compatibility(inputs)
File "/Users/aloreggia/Documents/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 448, 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.
Can you help me solving this issue?
Thank you
Andrea
The text was updated successfully, but these errors were encountered: