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
48b9ecd2
Unverified
Commit
48b9ecd2
authored
Apr 07, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Apr 07, 2021
Browse files
Fix discrepancy in dgl.dataloading.EdgeDataLoader (#2819)
* fix discrepancy * address comments
parent
2afa3598
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
python/dgl/dataloading/dataloader.py
python/dgl/dataloading/dataloader.py
+5
-1
python/dgl/dataloading/pytorch/__init__.py
python/dgl/dataloading/pytorch/__init__.py
+6
-2
No files found.
python/dgl/dataloading/dataloader.py
View file @
48b9ecd2
...
@@ -453,7 +453,11 @@ class EdgeCollator(Collator):
...
@@ -453,7 +453,11 @@ class EdgeCollator(Collator):
If ``g_sampling`` is given, ``exclude`` is ignored and will be always ``None``.
If ``g_sampling`` is given, ``exclude`` is ignored and will be always ``None``.
reverse_eids : Tensor or dict[etype, Tensor], optional
reverse_eids : Tensor or dict[etype, Tensor], optional
The mapping from original edge ID to its reverse edge ID.
A tensor of reverse edge ID mapping. The i-th element indicates the ID of
the i-th edge's reverse edge.
If the graph is heterogeneous, this argument requires a dictionary of edge
types and the reverse edge ID mapping tensors.
Required and only used when ``exclude`` is set to ``reverse_id``.
Required and only used when ``exclude`` is set to ``reverse_id``.
...
...
python/dgl/dataloading/pytorch/__init__.py
View file @
48b9ecd2
...
@@ -317,8 +317,12 @@ class EdgeDataLoader:
...
@@ -317,8 +317,12 @@ class EdgeDataLoader:
See the description of the argument with the same name in the docstring of
See the description of the argument with the same name in the docstring of
:class:`~dgl.dataloading.EdgeCollator` for more details.
:class:`~dgl.dataloading.EdgeCollator` for more details.
reverse_edge_ids : Tensor or dict[etype, Tensor], optional
reverse_eids : Tensor or dict[etype, Tensor], optional
The mapping from the original edge IDs to the ID of their reverse edges.
A tensor of reverse edge ID mapping. The i-th element indicates the ID of
the i-th edge's reverse edge.
If the graph is heterogeneous, this argument requires a dictionary of edge
types and the reverse edge ID mapping tensors.
See the description of the argument with the same name in the docstring of
See the description of the argument with the same name in the docstring of
:class:`~dgl.dataloading.EdgeCollator` for more details.
:class:`~dgl.dataloading.EdgeCollator` for more details.
...
...
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