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
5e9d2889
Unverified
Commit
5e9d2889
authored
Sep 13, 2020
by
Quan (Andy) Gan
Committed by
GitHub
Sep 13, 2020
Browse files
fix typo (#2185)
Co-authored-by:
Zihao Ye
<
expye@outlook.com
>
parent
3234189b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/guide/minibatch-edge.rst
docs/source/guide/minibatch-edge.rst
+2
-2
No files found.
docs/source/guide/minibatch-edge.rst
View file @
5e9d2889
...
...
@@ -54,7 +54,7 @@ advantage.
Therefore
in
edge
classification
you
sometimes
would
like
to
exclude
the
edges
sampled
in
the
minibatch
from
the
original
graph
for
neighborhood
sampling
,
as
well
as
the
reverse
edges
of
the
sampled
edges
on
an
undirected
graph
.
You
can
specify
``
exclude
=
'reverse'
``
in
instantiation
undirected
graph
.
You
can
specify
``
exclude
=
'reverse
_id
'
``
in
instantiation
of
:
class
:`~
dgl
.
dataloading
.
pytorch
.
EdgeDataLoader
`,
with
the
mapping
of
the
edge
IDs
to
their
reverse
edges
IDs
.
Usually
doing
so
will
lead
to
much
slower
sampling
process
due
to
locating
the
reverse
edges
involving
in
the
minibatch
...
...
@@ -69,7 +69,7 @@ and removing them.
#
The
following
two
arguments
are
specifically
for
excluding
the
minibatch
#
edges
and
their
reverse
edges
from
the
original
graph
for
neighborhood
#
sampling
.
exclude
=
'reverse'
,
exclude
=
'reverse
_id
'
,
reverse_eids
=
torch
.
cat
([
torch
.
arange
(
n_edges
//
2
,
n_edges
),
torch
.
arange
(
0
,
n_edges
//
2
)]),
...
...
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