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

Compiling Model #2

Open
linanzhang opened this issue Jun 26, 2020 · 2 comments
Open

Compiling Model #2

linanzhang opened this issue Jun 26, 2020 · 2 comments

Comments

@linanzhang
Copy link

Hi,

When I ran the sample code, I encountered the following error

Traceback (most recent call last):
File "gcn_LR2_LR_as_nega_big.py", line 75, in
model = Model(inputs=[X_in, A_in], outputs=output)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 94, in init
self._init_graph_network(*args, **kwargs)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 241, in _init_graph_network
self.inputs, self.outputs)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1434, in _map_graph_network
tensor_index=tensor_index)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map
node_index, tensor_index)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map
node_index, tensor_index)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map
node_index, tensor_index)
File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1393, in build_map
node = layer._inbound_nodes[node_index]
AttributeError: 'NoneType' object has no attribute '_inbound_nodes'

It seems that GraphConv is not recognized as a keras layer. I'm wondering how you resolved this issue. Thank you.

@xiaoyeye
Copy link
Owner

plz used the old version of spektral as "spektral"github suggests.

@wanglu2014
Copy link

wanglu2014 commented Apr 6, 2021

plz used the old version of spektral as "spektral"github suggests.

Could you kindly specify which version of your scipy and spektral?

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