Skip to content

Commit

Permalink
Correct typo in neighbor_loader document (#8945)
Browse files Browse the repository at this point in the history
Related issue: #8943

---------

Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
  • Loading branch information
songsong0425 and rusty1s committed Feb 21, 2024
1 parent 9de65d8 commit ff9347c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorial/neighbor_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The :class:`~torch_geometric.loader.NeighborLoader` is initialized from a :pyg:`
shuffle=False,
)
Here, we initialize the :class:`~torch_geometric.loader.NeigborLoader` to sample subgraphs for the first two nodes, where we waant to sample 2 neighbors in the first hop, and 1 neighbor in the second hop.
Here, we initialize the :class:`~torch_geometric.loader.NeigborLoader` to sample subgraphs for the first two nodes, where we want to sample 2 neighbors in the first hop, and 1 neighbor in the second hop.
Our :obj:`batch_size` is set to :obj:`1`, such that :obj:`input_nodes` will be split into chunks of size :obj:`1`.

In the execution of :class:`~torch_geometric.loader.NeighborLoader`, we expect that the seed node :obj:`0` samples nodes :obj:`2` and :obj:`3` in the first hop. In the second hop, node :obj:`2` samples node :obj:`5`, and node :obj:`3` samples node :obj:`6`.
Expand Down

0 comments on commit ff9347c

Please sign in to comment.