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
cdf65f4d
Unverified
Commit
cdf65f4d
authored
Jul 04, 2023
by
Rhett Ying
Committed by
GitHub
Jul 04, 2023
Browse files
Revert "[CI] Temmprarily skip ogb-related tests" (#5944)
parent
4b585ba0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
7 deletions
+4
-7
tests/python/common/data/test_data.py
tests/python/common/data/test_data.py
+0
-3
tutorials/large/L1_large_node_classification.py
tutorials/large/L1_large_node_classification.py
+1
-1
tutorials/large/L2_large_link_prediction.py
tutorials/large/L2_large_link_prediction.py
+1
-1
tutorials/large/L4_message_passing.py
tutorials/large/L4_message_passing.py
+1
-1
tutorials/multi/2_node_classification.py
tutorials/multi/2_node_classification.py
+1
-1
No files found.
tests/python/common/data/test_data.py
View file @
cdf65f4d
...
@@ -1789,7 +1789,6 @@ def test_as_nodepred2():
...
@@ -1789,7 +1789,6 @@ def test_as_nodepred2():
assert
len
(
ds
.
train_idx
)
==
int
(
ds
[
0
].
num_nodes
(
"Personen"
)
*
0.1
)
assert
len
(
ds
.
train_idx
)
==
int
(
ds
[
0
].
num_nodes
(
"Personen"
)
*
0.1
)
@
unittest
.
skip
(
"ogb is not available"
)
@
unittest
.
skipIf
(
@
unittest
.
skipIf
(
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
)
)
...
@@ -1842,7 +1841,6 @@ def test_as_linkpred():
...
@@ -1842,7 +1841,6 @@ def test_as_linkpred():
assert
4000
<
ds
.
test_edges
[
1
][
0
].
shape
[
0
]
<=
4224
assert
4000
<
ds
.
test_edges
[
1
][
0
].
shape
[
0
]
<=
4224
@
unittest
.
skip
(
"ogb is not available"
)
@
unittest
.
skipIf
(
@
unittest
.
skipIf
(
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
)
)
...
@@ -2076,7 +2074,6 @@ def test_as_graphpred_reprocess():
...
@@ -2076,7 +2074,6 @@ def test_as_graphpred_reprocess():
assert
len
(
ds
.
train_idx
)
==
int
(
len
(
ds
)
*
0.1
)
assert
len
(
ds
.
train_idx
)
==
int
(
len
(
ds
)
*
0.1
)
@
unittest
.
skip
(
"ogb is not available"
)
@
unittest
.
skipIf
(
@
unittest
.
skipIf
(
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
dgl
.
backend
.
backend_name
!=
"pytorch"
,
reason
=
"ogb only supports pytorch"
)
)
...
...
tutorials/large/L1_large_node_classification.py
View file @
cdf65f4d
...
@@ -24,7 +24,7 @@ Sampling for GNN Training <L0_neighbor_sampling_overview>`.
...
@@ -24,7 +24,7 @@ Sampling for GNN Training <L0_neighbor_sampling_overview>`.
#
#
# OGB already prepared the data as DGL graph.
# OGB already prepared the data as DGL graph.
#
#
exit
(
0
)
import
os
import
os
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
...
...
tutorials/large/L2_large_link_prediction.py
View file @
cdf65f4d
...
@@ -51,7 +51,7 @@ Sampling for Node Classification <L1_large_node_classification>`.
...
@@ -51,7 +51,7 @@ Sampling for Node Classification <L1_large_node_classification>`.
# This tutorial loads the dataset from the ``ogb`` package as in the
# This tutorial loads the dataset from the ``ogb`` package as in the
# :doc:`previous tutorial <L1_large_node_classification>`.
# :doc:`previous tutorial <L1_large_node_classification>`.
#
#
exit
(
0
)
import
os
import
os
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
...
...
tutorials/large/L4_message_passing.py
View file @
cdf65f4d
...
@@ -12,7 +12,7 @@ for stochastic GNN training. It assumes that
...
@@ -12,7 +12,7 @@ for stochastic GNN training. It assumes that
works <L1_large_node_classification>`.
works <L1_large_node_classification>`.
"""
"""
exit
(
0
)
import
os
import
os
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
...
...
tutorials/multi/2_node_classification.py
View file @
cdf65f4d
...
@@ -32,7 +32,7 @@ models with multi-GPU with ``DistributedDataParallel``.
...
@@ -32,7 +32,7 @@ models with multi-GPU with ``DistributedDataParallel``.
# Classification <../large/L1_large_node_classification>`
# Classification <../large/L1_large_node_classification>`
# tutorial.
# tutorial.
#
#
exit
(
0
)
import
os
import
os
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
os
.
environ
[
"DGLBACKEND"
]
=
"pytorch"
...
...
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