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
7643e537
"...text-generation-inference.git" did not exist on "5cd8025f1849bd4c13edcf9eb4f72e199e6a5c37"
Unverified
Commit
7643e537
authored
Nov 16, 2023
by
Andrei Ivanov
Committed by
GitHub
Nov 17, 2023
Browse files
Elimination of warnings in two GraphBolt tests. (#6573)
parent
6d4958c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
+4
-4
No files found.
tests/python/pytorch/graphbolt/impl/test_ondisk_dataset.py
View file @
7643e537
...
@@ -898,7 +898,7 @@ def test_OnDiskDataset_Feature_heterograph():
...
@@ -898,7 +898,7 @@ def test_OnDiskDataset_Feature_heterograph():
)
)
assert
torch
.
equal
(
assert
torch
.
equal
(
feature_data
.
read
(
"node"
,
"paper"
,
"labels"
),
feature_data
.
read
(
"node"
,
"paper"
,
"labels"
),
torch
.
tensor
(
node_data_label
),
node_data_label
.
clone
().
detach
(
),
)
)
# Verify edge feature data.
# Verify edge feature data.
...
@@ -908,7 +908,7 @@ def test_OnDiskDataset_Feature_heterograph():
...
@@ -908,7 +908,7 @@ def test_OnDiskDataset_Feature_heterograph():
)
)
assert
torch
.
equal
(
assert
torch
.
equal
(
feature_data
.
read
(
"edge"
,
"author:writes:paper"
,
"labels"
),
feature_data
.
read
(
"edge"
,
"author:writes:paper"
,
"labels"
),
torch
.
tensor
(
edge_data_label
),
edge_data_label
.
clone
().
detach
(
),
)
)
feature_data
=
None
feature_data
=
None
...
@@ -981,7 +981,7 @@ def test_OnDiskDataset_Feature_homograph():
...
@@ -981,7 +981,7 @@ def test_OnDiskDataset_Feature_homograph():
)
)
assert
torch
.
equal
(
assert
torch
.
equal
(
feature_data
.
read
(
"node"
,
None
,
"labels"
),
feature_data
.
read
(
"node"
,
None
,
"labels"
),
torch
.
tensor
(
node_data_label
),
node_data_label
.
clone
().
detach
(
),
)
)
# Verify edge feature data.
# Verify edge feature data.
...
@@ -991,7 +991,7 @@ def test_OnDiskDataset_Feature_homograph():
...
@@ -991,7 +991,7 @@ def test_OnDiskDataset_Feature_homograph():
)
)
assert
torch
.
equal
(
assert
torch
.
equal
(
feature_data
.
read
(
"edge"
,
None
,
"labels"
),
feature_data
.
read
(
"edge"
,
None
,
"labels"
),
torch
.
tensor
(
edge_data_label
),
edge_data_label
.
clone
().
detach
(
),
)
)
feature_data
=
None
feature_data
=
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