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
31772b14
Unverified
Commit
31772b14
authored
Aug 16, 2021
by
blokhinnv
Committed by
GitHub
Aug 16, 2021
Browse files
fixed typos in docs and docstring (#3231)
Co-authored-by:
Quan (Andy) Gan
<
coin2028@hotmail.com
>
parent
6f36dd63
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
docs/source/guide/nn-construction.rst
docs/source/guide/nn-construction.rst
+1
-1
docs/source/guide/training-edge.rst
docs/source/guide/training-edge.rst
+8
-8
docs/source/guide/training-graph.rst
docs/source/guide/training-graph.rst
+9
-9
python/dgl/nn/pytorch/utils.py
python/dgl/nn/pytorch/utils.py
+1
-1
No files found.
docs/source/guide/nn-construction.rst
View file @
31772b14
...
@@ -35,7 +35,7 @@ The construction function performs the following steps:
...
@@ -35,7 +35,7 @@ The construction function performs the following steps:
In construction function, one first needs to set the data dimensions. For
In construction function, one first needs to set the data dimensions. For
general PyTorch module, the dimensions are usually input dimension,
general PyTorch module, the dimensions are usually input dimension,
output dimension and hidden dimensions. For graph neural, the input
output dimension and hidden dimensions. For graph neural
networks
, the input
dimension can be split into source node dimension and destination node
dimension can be split into source node dimension and destination node
dimension.
dimension.
...
...
docs/source/guide/training-edge.rst
View file @
31772b14
...
@@ -156,7 +156,7 @@ You can similarly write a ``HeteroMLPPredictor``.
...
@@ -156,7 +156,7 @@ You can similarly write a ``HeteroMLPPredictor``.
..
code
::
python
..
code
::
python
class
MLPPredictor
(
nn
.
Module
):
class
Hetero
MLPPredictor
(
nn
.
Module
):
def
__init__
(
self
,
in_features
,
out_classes
):
def
__init__
(
self
,
in_features
,
out_classes
):
super
().
__init__
()
super
().
__init__
()
self
.
W
=
nn
.
Linear
(
in_features
*
2
,
out_classes
)
self
.
W
=
nn
.
Linear
(
in_features
*
2
,
out_classes
)
...
...
docs/source/guide/training-graph.rst
View file @
31772b14
...
@@ -101,7 +101,7 @@ where :math:`h_g` is the representation of :math:`g`, :math:`\mathcal{V}` is
...
@@ -101,7 +101,7 @@ where :math:`h_g` is the representation of :math:`g`, :math:`\mathcal{V}` is
the
set
of
nodes
in
:
math
:`
g
`,
:
math
:`
h_v
`
is
the
feature
of
node
:
math
:`
v
`.
the
set
of
nodes
in
:
math
:`
g
`,
:
math
:`
h_v
`
is
the
feature
of
node
:
math
:`
v
`.
DGL
provides
built
-
in
support
for
common
readout
operations
.
For
example
,
DGL
provides
built
-
in
support
for
common
readout
operations
.
For
example
,
:
func
:`
dgl
.
r
ea
dout
_nodes
`
implements
the
above
readout
operation
.
:
func
:`
dgl
.
m
ea
n
_nodes
`
implements
the
above
readout
operation
.
Once
:
math
:`
h_g
`
is
available
,
one
can
pass
it
through
an
MLP
layer
for
Once
:
math
:`
h_g
`
is
available
,
one
can
pass
it
through
an
MLP
layer
for
classification
output
.
classification
output
.
...
...
python/dgl/nn/pytorch/utils.py
View file @
31772b14
...
@@ -108,7 +108,7 @@ class Sequential(nn.Sequential):
...
@@ -108,7 +108,7 @@ class Sequential(nn.Sequential):
Description
Description
-----------
-----------
A squential container for stacking graph neural network modules.
A s
e
quential container for stacking graph neural network modules.
DGL supports two modes: sequentially apply GNN modules on 1) the same graph or
DGL supports two modes: sequentially apply GNN modules on 1) the same graph or
2) a list of given graphs. In the second case, the number of graphs equals the
2) a list of given graphs. In the second case, the number of graphs equals the
...
...
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