Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
11e910b6
Unverified
Commit
11e910b6
authored
Mar 31, 2022
by
Mufei Li
Committed by
GitHub
Mar 31, 2022
Browse files
[Doc] Hotfix for GraphSAINT Doc (#3898)
* Update graphsaint.py * Update graphsaint.py
parent
35e66f42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
python/dgl/dataloading/graphsaint.py
python/dgl/dataloading/graphsaint.py
+1
-2
No files found.
python/dgl/dataloading/graphsaint.py
View file @
11e910b6
...
@@ -61,8 +61,7 @@ class SAINTSampler(Sampler):
...
@@ -61,8 +61,7 @@ class SAINTSampler(Sampler):
>>> num_iters = 1000
>>> num_iters = 1000
>>> sampler = SAINTSampler(mode='node', budget=6000)
>>> sampler = SAINTSampler(mode='node', budget=6000)
>>> # Assume g.ndata['feat'] and g.ndata['label'] hold node features and labels
>>> # Assume g.ndata['feat'] and g.ndata['label'] hold node features and labels
>>> dataloader = DataLoader(g, torch.arange(num_iters), sampler, num_workers=4,
>>> dataloader = DataLoader(g, torch.arange(num_iters), sampler, num_workers=4)
... prefetch_ndata=['feat', 'label'])
>>> for subg in dataloader:
>>> for subg in dataloader:
... train_on(subg)
... train_on(subg)
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment