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
9249be28
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "f73d0b6becf8f6b985c237bdfc94e31f2d96e956"
Unverified
Commit
9249be28
authored
Jul 04, 2023
by
Rhett Ying
Committed by
GitHub
Jul 04, 2023
Browse files
[GraphBolt] remove main function from unit test script (#5950)
parent
49e336d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
tests/python/pytorch/graphbolt/test_csc_sampling_graph.py
tests/python/pytorch/graphbolt/test_csc_sampling_graph.py
+0
-10
No files found.
tests/python/pytorch/graphbolt/test_csc_sampling_graph.py
View file @
9249be28
...
...
@@ -797,13 +797,3 @@ def test_from_dglgraph_heterogeneous():
(
"n2"
,
"r21"
,
"n1"
):
2
,
(
"n2"
,
"r23"
,
"n3"
):
3
,
}
if
__name__
==
"__main__"
:
test_sample_neighbors
()
test_sample_neighbors_replace
(
True
,
12
)
test_sample_neighbors_probs
(
False
,
torch
.
tensor
([
2.5
,
0
,
8.4
,
0
,
0.4
,
1.2
,
2.5
,
0
,
8.4
,
0
,
0.4
,
1.2
]),
)
test_sample_neighbors_zero_probs
(
True
,
torch
.
zeros
(
12
,
dtype
=
torch
.
float32
))
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