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
Cannot interpret feed_dict as Tensor #59
Comments
The problem is that your graphs have Instead you should use the helper function
Hope this works! |
Hi, I think you have Nones in your input. Can you try:
|
Hi, thanks very much for getting back to me! So I'm now running: for iteration in range(last_iteration, num_training_iterations):
last_iteration = iteration
feed_dict = utils_tf.get_feed_dict(
train_input_ph,
utils_np.networkxs_to_graphs_tuple(train_input))
feed_dict.update(utils_tf.get_feed_dict(
train_target_ph,
utils_np.networkxs_to_graphs_tuple(train_target)
))
train_values = sess.run({
"step": step_op,
"target": train_target_ph,
"train_loss": loss_train,
"outputs": output_train_graphs
},
feed_dict=feed_dict
) And the error is now:
Googling this seems to suggest there can be all kinds of reasons for this error, so I thought I'd bring it back here just in case. |
Can you try to see which output causes this? |
I think you may need to use the graphs placeholders to call get_feed_dict before you pass them through by But you seem to be losing the reference to those when you do: Just try:
And use the |
Thanks so much! The model is now training, really appreciate the help |
Hi! I'm trying to run a model that predicts node attributes based on global and edge inputs.
I've been largely following the shortest_path.ipynb demo to write my code, and my code at the moment looks as follows (happy to include more if need be!):
In the running training section of code, I then have:
However, when I try to run the second set of code, I get the following error:
I notice this is a similar thing to #24 but when I tried the solution there of reducing make_all_runnable_in_session to only act on output_train_graphs and output_test_graphs, I get the following error instead:
What can I do with the feed_dict and session variables to make this all work?
The text was updated successfully, but these errors were encountered: