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
21ff161d
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "3e3d46924b4fd1fa36ccbc5605ed619cdcc00dbf"
Unverified
Commit
21ff161d
authored
Jun 06, 2019
by
Quan (Andy) Gan
Committed by
GitHub
Jun 06, 2019
Browse files
fix occasional assertion fail (#611)
parent
84702916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/compute/test_sampler.py
tests/compute/test_sampler.py
+2
-0
No files found.
tests/compute/test_sampler.py
View file @
21ff161d
...
...
@@ -4,6 +4,8 @@ import scipy as sp
import
dgl
from
dgl
import
utils
np
.
random
.
seed
(
42
)
def
generate_rand_graph
(
n
):
arr
=
(
sp
.
sparse
.
random
(
n
,
n
,
density
=
0.1
,
format
=
'coo'
)
!=
0
).
astype
(
np
.
int64
)
return
dgl
.
DGLGraph
(
arr
,
readonly
=
True
)
...
...
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