Skip to content

Commit

Permalink
[Doc] Hotfix for GraphSAINT Doc (dmlc#3898)
Browse files Browse the repository at this point in the history
* Update graphsaint.py

* Update graphsaint.py
  • Loading branch information
mufeili authored Mar 31, 2022
1 parent 35e66f4 commit 11e910b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/dgl/dataloading/graphsaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ class SAINTSampler(Sampler):
>>> num_iters = 1000
>>> sampler = SAINTSampler(mode='node', budget=6000)
>>> # Assume g.ndata['feat'] and g.ndata['label'] hold node features and labels
>>> dataloader = DataLoader(g, torch.arange(num_iters), sampler, num_workers=4,
... prefetch_ndata=['feat', 'label'])
>>> dataloader = DataLoader(g, torch.arange(num_iters), sampler, num_workers=4)
>>> for subg in dataloader:
... train_on(subg)
"""
Expand Down

0 comments on commit 11e910b

Please sign in to comment.