Unverified Commit 2583ec59 authored by Jinjing Zhou's avatar Jinjing Zhou Committed by GitHub
Browse files

[Doc] Fix WeightBasis documentation (#3189)



* fix

* fix type
Co-authored-by: default avatarMinjie Wang <wmjlyjemaine@gmail.com>
parent cb4a83a2
......@@ -275,6 +275,13 @@ Sequential
:members:
:show-inheritance:
WeightBasis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: dgl.nn.pytorch.utils.WeightBasis
:members:
:show-inheritance:
KNNGraph
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -85,7 +85,7 @@ def main(args, print_fn=print):
subsample_ratio=args.subsample_ratio, use_coalesce=use_coalesce, prefix=args.dataset,
save_dir=args.save_dir, num_workers=args.num_workers, print_fn=print_fn)
node_attribute = seal_data.ndata['feat']
edge_weight = seal_data.edata['edge_weight'].float()
edge_weight = seal_data.edata['weight'].float()
train_data = seal_data('train')
val_data = seal_data('valid')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment