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
81456af8
Unverified
Commit
81456af8
authored
Jun 28, 2021
by
Kay Liu
Committed by
GitHub
Jun 28, 2021
Browse files
[Doc] fix inconsistent variable names (#3065)
Co-authored-by:
Quan (Andy) Gan
<
coin2028@hotmail.com
>
parent
7f4086da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docs/source/guide/minibatch-custom-sampler.rst
docs/source/guide/minibatch-custom-sampler.rst
+1
-1
docs/source/guide_cn/minibatch-custom-sampler.rst
docs/source/guide_cn/minibatch-custom-sampler.rst
+1
-1
No files found.
docs/source/guide/minibatch-custom-sampler.rst
View file @
81456af8
...
@@ -439,7 +439,7 @@ all edge types, so that it can work on heterogeneous graphs as well.
...
@@ -439,7 +439,7 @@ all edge types, so that it can work on heterogeneous graphs as well.
# Return a new graph with the same nodes as the original graph as a
# Return a new graph with the same nodes as the original graph as a
# frontier
# frontier
frontier = dgl.edge_subgraph(new_edge_masks, relabel_nodes=False)
frontier = dgl.edge_subgraph(new_edge
s
_masks, relabel_nodes=False)
return frontier
return frontier
def __len__(self):
def __len__(self):
...
...
docs/source/guide_cn/minibatch-custom-sampler.rst
View file @
81456af8
...
@@ -381,7 +381,7 @@ DGL确保块的输出节点将始终出现在输入节点中。如下代码所
...
@@ -381,7 +381,7 @@ DGL确保块的输出节点将始终出现在输入节点中。如下代码所
new_edges_masks
[
etype
]
=
edge_mask
.
bool
()
new_edges_masks
[
etype
]
=
edge_mask
.
bool
()
#
返回一个与初始图有相同节点的图作为边界
#
返回一个与初始图有相同节点的图作为边界
frontier
=
dgl
.
edge_subgraph
(
new_edge_masks
,
relabel_nodes
=
False
)
frontier
=
dgl
.
edge_subgraph
(
new_edge
s
_masks
,
relabel_nodes
=
False
)
return
frontier
return
frontier
def
__len__
(
self
):
def
__len__
(
self
):
...
...
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