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

Problems running GCN in a loop #32

Open
gailmargolis76 opened this issue Jun 26, 2018 · 1 comment
Open

Problems running GCN in a loop #32

gailmargolis76 opened this issue Jun 26, 2018 · 1 comment

Comments

@gailmargolis76
Copy link

When i try to put the GCN model construction in a loop (to test various randomly generated hyperparameters), I get the following error: ValueError: Initializer for variable graph_convolution_22/kernel/ is from inside a control-flow construct, such as a loop or conditional. When creating a variable inside a loop or conditional, use a lambda as the initializer

Has anyone come across this error?

@Tamaiw
Copy link

Tamaiw commented May 27, 2019

I know this is almost a year late but it might be fixed by:
from keras import backend as K
K.clear_session()

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

2 participants