google-deepmind / graph_nets

Build Graph Nets in Tensorflow
https://arxiv.org/abs/1806.01261
Apache License 2.0
5.36k stars 782 forks source link

NameError: name 'utils_np' is not defined #72

Closed priyeshshukla closed 5 years ago

priyeshshukla commented 5 years ago

Hi, while going through graph_nets_basics tutorial in colab, I get the following error while putting the graph dictionaries into a GraphsTuple using utils_np.data_dicts_to_graphs_tuple. I could not get a clear solution to it anywhere. Help is appreciated.

NameErrorTraceback (most recent call last)

in () 1 data_dict_list = [data_dict_0, data_dict_1] ----> 2 graphs_tuple = utils_np.data_dicts_to_graphs_tuple(data_dict_list) NameError: name 'utils_np' is not defined
vbapst commented 5 years ago

Hello,

did you run the cells above in the colab (in particular, the third cell that contains the utils_np import)?

priyeshshukla commented 5 years ago

Hello, yeah I was directly running the cells in colab. Later, I imported all required imports separately first, it worked. Thanks!