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

Got error when using theano #60

Open
Freakwill opened this issue May 5, 2020 · 0 comments
Open

Got error when using theano #60

Freakwill opened this issue May 5, 2020 · 0 comments

Comments

@Freakwill
Copy link

I got error when using theano by configuring .kreras/keras.json file

Using Theano backend.
Loading cora dataset...
Dataset has 2708 nodes, 5429 edges, 1433 features.
Using local pooling filters...
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/keras/engine/base_layer.py", line 310, in assert_input_compatibility
K.is_keras_tensor(x)
File "/usr/local/lib/python3.7/site-packages/keras/backend/theano_backend.py", line 225, in is_keras_tensor
str(type(x)) + '. ' ValueError: Unexpectedly found an instance of type <class 'theano.sparse.basic.SparseVariable'>`. Expected a symbolic tensor instance.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/.../train.py", line 56, in
H = GraphConvolution(16, support, activation='relu', kernel_regularizer=l2(5e-4))([H]+G)
File "/usr/local/lib/python3.7/site-packages/keras/engine/base_layer.py", line 446, in call
self.assert_input_compatibility(inputs)
File "/usr/local/lib/python3.7/site-packages/keras/engine/base_layer.py", line 316, 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.

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

1 participant