AttributeError: module 'graphlearn' has no attribute 'encoders' #122
-
|
Describe the bug run node_classification_on_citation.ipynb : train(config, lg) the error:AttributeError Traceback (most recent call last) in train(config, graph) ~/anaconda3/envs/graphscope/lib/python3.7/site-packages/graphscope/learning/graphlearn/python/model/tf/trainer.py in init(self, model_func, epoch, optimizer) in model_fn() ~/anaconda3/envs/graphscope/lib/python3.7/site-packages/graphscope/learning/examples/tf/gcn/gcn.py in init(self, graph, output_dim, features_num, batch_size, val_batch_size, test_batch_size, categorical_attrs_desc, hidden_dim, in_drop_rate, hops_num, neighs_num, full_graph_mode, node_type, edge_type) ~/anaconda3/envs/graphscope/lib/python3.7/site-packages/graphscope/learning/examples/tf/gcn/gcn.py in _encoders(self) AttributeError: module 'graphlearn' has no attribute 'encoders' Environment (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Looks like you encounter a tensorflow's To use models from |
Beta Was this translation helpful? Give feedback.
-
|
Hi @zdx I think that has already been fixed in your environment. Feel free to re-open if you have any further comment. |
Beta Was this translation helpful? Give feedback.
Looks like you encounter a tensorflow's
ImportErrorfirst, then install tensorflow and continue to run the demo script.To use models from
examples/ingraphscope.learning.examples, you need to install tensorflow first then "import graphscope", i.e., you need to restart the notebook after install tensorflow.