Closed luyifanlu closed 5 years ago
There are seem no global-level attributes in the graphs. dose it work?why?
There is a global feature with
G.graph["features"] = np.array([0.])
I also update my comment in #6(comment) where you can see more information.
You seem to be trying to run the network directly against a GraphTuple with numpy arrays (hence .shape
being a tuple
instead of TensorShape
).
In order to run the network you must feed it tf.placeholder
objects which are filled with the actual values through session.run()
. There are some helper functions to create tf.placeholder
objects based on the GraphTuple. Check the example notebooks for now to run the network.
Closing due to inactivity, since the last answer seems to have worked for the OP.
Run "graph nets basics demo" in browser
The new "graph nets basics demo" is a tutorial containing step by step examples about how to create and manipulate graphs, how to feed them into graph networks and how to build custom graph network modules. It should contain most of the answers to these questions.
When I run the sample as
I got an error as
I use tfp-nightly-0.6.0 and dm-sonnet-1.23, graph-nets-1.0.2
_Originally posted by @jcsh4326 in https://github.com/deepmind/graph_nets/issues/6#issuecomment-440900296_