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
6f9db813
You need to sign in or sign up before continuing.
Unverified
Commit
6f9db813
authored
Jan 16, 2024
by
Mingbang Wang
Committed by
GitHub
Jan 16, 2024
Browse files
[Misc] Correct `test_OnDiskDataset_preprocess_homogeneous` (#6922)
parent
de1eedc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
+3
-4
No files found.
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
View file @
6f9db813
...
...
@@ -1175,9 +1175,9 @@ def test_OnDiskDataset_preprocess_homogeneous(edge_fmt):
yaml_file
=
os
.
path
.
join
(
test_dir
,
"metadata.yaml"
)
with
open
(
yaml_file
,
"w"
)
as
f
:
f
.
write
(
yaml_content
)
# Test
do not
generat
e
original_edge_id.
# Test generat
ing
original_edge_id.
output_file
=
gb
.
ondisk_dataset
.
preprocess_ondisk_dataset
(
test_dir
,
include_original_edge_id
=
Fals
e
test_dir
,
include_original_edge_id
=
Tru
e
)
with
open
(
output_file
,
"rb"
)
as
f
:
processed_dataset
=
yaml
.
load
(
f
,
Loader
=
yaml
.
Loader
)
...
...
@@ -1186,8 +1186,7 @@ def test_OnDiskDataset_preprocess_homogeneous(edge_fmt):
)
assert
(
fused_csc_sampling_graph
.
edge_attributes
is
not
None
and
gb
.
ORIGINAL_EDGE_ID
not
in
fused_csc_sampling_graph
.
edge_attributes
and
gb
.
ORIGINAL_EDGE_ID
in
fused_csc_sampling_graph
.
edge_attributes
)
fused_csc_sampling_graph
=
None
...
...
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