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
1502c56d
Unverified
Commit
1502c56d
authored
Jan 13, 2021
by
Hongyu Cai
Committed by
GitHub
Jan 13, 2021
Browse files
[Doc] Fix typo of datasets (#2517)
Co-authored-by:
Minjie Wang
<
wmjlyjemaine@gmail.com
>
parent
1e69bf53
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/pytorch/ogb/cluster-gat/main.py
examples/pytorch/ogb/cluster-gat/main.py
+1
-1
examples/pytorch/ogb/cluster-sage/main.py
examples/pytorch/ogb/cluster-sage/main.py
+1
-1
examples/pytorch/ogb/ogbn-products/graphsage/main.py
examples/pytorch/ogb/ogbn-products/graphsage/main.py
+1
-1
No files found.
examples/pytorch/ogb/cluster-gat/main.py
View file @
1502c56d
...
@@ -232,7 +232,7 @@ if __name__ == '__main__':
...
@@ -232,7 +232,7 @@ if __name__ == '__main__':
else
:
else
:
device
=
th
.
device
(
'cpu'
)
device
=
th
.
device
(
'cpu'
)
# load
reddit
data
# load
ogbn-products
data
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
splitted_idx
=
data
.
get_idx_split
()
splitted_idx
=
data
.
get_idx_split
()
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
...
...
examples/pytorch/ogb/cluster-sage/main.py
View file @
1502c56d
...
@@ -202,7 +202,7 @@ if __name__ == '__main__':
...
@@ -202,7 +202,7 @@ if __name__ == '__main__':
else
:
else
:
device
=
th
.
device
(
'cpu'
)
device
=
th
.
device
(
'cpu'
)
# load
reddit
data
# load
ogbn-products
data
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
splitted_idx
=
data
.
get_idx_split
()
splitted_idx
=
data
.
get_idx_split
()
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
...
...
examples/pytorch/ogb/ogbn-products/graphsage/main.py
View file @
1502c56d
...
@@ -214,7 +214,7 @@ if __name__ == '__main__':
...
@@ -214,7 +214,7 @@ if __name__ == '__main__':
else
:
else
:
device
=
th
.
device
(
'cpu'
)
device
=
th
.
device
(
'cpu'
)
# load
reddit
data
# load
ogbn-products
data
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
data
=
DglNodePropPredDataset
(
name
=
'ogbn-products'
)
splitted_idx
=
data
.
get_idx_split
()
splitted_idx
=
data
.
get_idx_split
()
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
train_idx
,
val_idx
,
test_idx
=
splitted_idx
[
'train'
],
splitted_idx
[
'valid'
],
splitted_idx
[
'test'
]
...
...
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