Closed ferreirafabio closed 5 years ago
Debugging shows me the following feed_dict:
I can also see that output_ops_train contains the NoOp
operation assigned by the make_runnable function for receiver, sender and edge attribute. However, the n_edge
attribute has a Tensor "mul:0" (same as in screenshot).
During the function call of utils_tf._build_placeholders_from_specs
(called by placeholders_from_networkxs) I see that n_edge is not [0] but [1]. All my graphs have 0 edges (checked with graph.number_of_edges()).
You're probably losing the reference to the n_edge
placeholder when you do:
input_ph = input_ph.replace(edges=None, senders=None, receivers=None, n_edge=input_ph.n_edge * 0)
Can you try removing the last assignment in this line?
Closing assuming the last answer solved the problem due to inactivity. Please feel free to reopen if the problem persists.
I am trying to run the GN framework on networkx graphs without edges. For this, I have applied the method suggested by @alvarosg from this issue and I use the code suggested from the basics example to set edge attributes to None like this:
input_ph = input_ph.replace(edges=None, senders=None, receivers=None, n_edge=input_ph.n_edge * 0)
input_graphs
is a single networkx DiGraph andtarget_graphs
is a list of networkx DiGraph's.When I now try to feed my values in the session, I need to pass an integer for the n_edges. Is there a better way to do this? Can I set
n_edge
also toNone
?Complete code: