-
Notifications
You must be signed in to change notification settings - Fork 314
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
AttributeError: 'Graph' object has no attribute 'train_mask' #432
Comments
Hi @Song-xx , Could you please give the exact code/script for reproducing the error? Do you use |
I juse use the pipeline by 'from cogdl import pipeline'. The code I use is similar to these in the tutorial: data = build_dataset_from_name('cora').data
edge_index = np.array([[x, y] for x, y in zip(
data.edge_index[0].tolist(), data.edge_index[1].tolist())])
generator = pipeline("generate-emb", model='unsup_graphsage', return_model=True,
num_features=-1, hidden_size=emb_dim, cpu=True,
cpu_inference=True, no_test=True)
emb = generator(edge_index, data.x.numpy()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
❓ Questions & Help
I am using unsup_graphsage to train on cora dataset. This error happens.
my enviroment is:
cogdl==0.6.0
macos m1
python=3.9
the error message is :
The problem code lies in:
I tried to find a solution but failed. Any one can help me ? thx
The text was updated successfully, but these errors were encountered: