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
0afacfb8
Unverified
Commit
0afacfb8
authored
Sep 12, 2020
by
Jinjing Zhou
Committed by
GitHub
Sep 12, 2020
Browse files
Fix `create_format_` to `create_formats` (#2184)
* Update dgl.DGLGraph.rst * Update gcn.py
parent
4dae26a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docs/source/api/python/dgl.DGLGraph.rst
docs/source/api/python/dgl.DGLGraph.rst
+1
-1
examples/pytorch/ogb/ogbn-arxiv/gcn.py
examples/pytorch/ogb/ogbn-arxiv/gcn.py
+1
-1
No files found.
docs/source/api/python/dgl.DGLGraph.rst
View file @
0afacfb8
...
@@ -75,7 +75,7 @@ Methods for getting or manipulating the internal storage formats of a ``DGLGraph
...
@@ -75,7 +75,7 @@ Methods for getting or manipulating the internal storage formats of a ``DGLGraph
:toctree: ../../generated/
:toctree: ../../generated/
DGLGraph.formats
DGLGraph.formats
DGLGraph.create_format_
DGLGraph.create_format
s
_
Querying and manipulating node/edge ID type
Querying and manipulating node/edge ID type
-----------------------------------------
-----------------------------------------
...
...
examples/pytorch/ogb/ogbn-arxiv/gcn.py
View file @
0afacfb8
...
@@ -249,7 +249,7 @@ def main():
...
@@ -249,7 +249,7 @@ def main():
in_feats
=
graph
.
ndata
[
"feat"
].
shape
[
1
]
in_feats
=
graph
.
ndata
[
"feat"
].
shape
[
1
]
n_classes
=
(
labels
.
max
()
+
1
).
item
()
n_classes
=
(
labels
.
max
()
+
1
).
item
()
graph
.
create_format_
()
graph
.
create_format
s
_
()
train_idx
=
train_idx
.
to
(
device
)
train_idx
=
train_idx
.
to
(
device
)
val_idx
=
val_idx
.
to
(
device
)
val_idx
=
val_idx
.
to
(
device
)
...
...
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