Skip to content

Commit

Permalink
[Doc] Fix WeightBasis documentation (dmlc#3189)
Browse files Browse the repository at this point in the history
* fix

* fix type

Co-authored-by: Minjie Wang <[email protected]>
  • Loading branch information
VoVAllen and jermainewang authored Jul 28, 2021
1 parent cb4a83a commit 2583ec5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/source/api/python/nn.pytorch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ Sequential
:members:
:show-inheritance:

WeightBasis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: dgl.nn.pytorch.utils.WeightBasis
:members:
:show-inheritance:

KNNGraph
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/seal/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2583ec5

Please sign in to comment.