"examples/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "6c23fba8fa4dbaf28fbd29abc527708d7ae4e34c"
Unverified Commit 7735473b authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by GitHub
Browse files

[Doc] fix typo (#4193)


Co-authored-by: default avatarXin Yao <xiny@nvidia.com>
parent d2a22984
...@@ -631,7 +631,8 @@ class DataLoader(torch.utils.data.DataLoader): ...@@ -631,7 +631,8 @@ class DataLoader(torch.utils.data.DataLoader):
Examples Examples
-------- --------
To train a 3-layer GNN for node classification on a set of nodes ``train_nid`` on To train a 3-layer GNN for node classification on a set of nodes ``train_nid`` on
a homogeneous graph where each node takes messages from all neighbors (assume a homogeneous graph where each node takes messages from 15 neighbors on the
first layer, 10 neighbors on the second, and 5 neighbors on the third (assume
the backend is PyTorch): the backend is PyTorch):
>>> sampler = dgl.dataloading.MultiLayerNeighborSampler([15, 10, 5]) >>> sampler = dgl.dataloading.MultiLayerNeighborSampler([15, 10, 5])
......
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