Tested with torch 1.10.1 and torch-geometric 2.0.3
File "/home/jean/Research/Projects/ogb/examples/linkproppred/citation2/cluster_gcn.py", line 223, in main
result = test(model, predictor, data, split_edge, evaluator,
File "/home/jean/anaconda3/envs/ogb/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "/home/jean/Research/Projects/ogb/examples/linkproppred/citation2/cluster_gcn.py", line 119, in test
weights = [(conv.weight.cpu().detach().numpy(),
File "/home/jean/Research/Projects/ogb/examples/linkproppred/citation2/cluster_gcn.py", line 119, in <listcomp>
weights = [(conv.weight.cpu().detach().numpy(),
File "/home/jean/anaconda3/envs/ogb/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'GCNConv' object has no attribute 'weight'
Tested with
torch 1.10.1
andtorch-geometric 2.0.3
Should it be
conv.lin.weight.t()
instead?