-
Notifications
You must be signed in to change notification settings - Fork 782
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
I executed Usage example is error #6
Comments
Thanks for opening the issue. That seems to be taken form the usage example:
In that example |
As a newbie, I am confused about the data format of Graph Nets input. I don't understand how Graph Nets works. I hope you can provide some simple styles of data. Thank you |
I create my own graphs with the code as
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 |
Hi, you are feeding numpy data into your graph.
|
@vbapst yep, you are right. And for more information, I should also change my np dtype from int32 to float, for an example,
should change to
|
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. Hope this helps. |
Leaving this here as a note to others who might end up here because googling the error has this as a top result. This same error happens if you mistakenly use utils_np.data_dicts_to_graphs_tuple instead of utils_tf.data_dicts_to_graphs_tuple. So ensure you are using the tf version if you are passing the resultant object into tensorflow. |
NameError: name 'get_graphs' is not defined |
launchx@launchx-System-Product-Name:~$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: