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
3fd6a5d0
"tests/python/vscode:/vscode.git/clone" did not exist on "d3483fe1f11a73b19253b975221a48717d288edf"
Unverified
Commit
3fd6a5d0
authored
Mar 06, 2024
by
Andrei Ivanov
Committed by
GitHub
Mar 07, 2024
Browse files
[DistDGL] Fixing warning in `test_new_kvstore`. (#7180)
parent
a7f1ab9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
tests/distributed/test_new_kvstore.py
tests/distributed/test_new_kvstore.py
+1
-8
No files found.
tests/distributed/test_new_kvstore.py
View file @
3fd6a5d0
import
multiprocessing
as
mp
import
multiprocessing
as
mp
import
os
import
os
import
socket
import
time
import
time
import
unittest
import
unittest
import
backend
as
F
import
backend
as
F
import
dgl
import
dgl
import
numpy
as
np
from
dgl.graph_index
import
create_graph_index
from
numpy.testing
import
assert_array_equal
from
numpy.testing
import
assert_array_equal
from
scipy
import
sparse
as
spsp
from
utils
import
generate_ip_config
,
reset_envs
from
utils
import
generate_ip_config
,
reset_envs
if
os
.
name
!=
"nt"
:
import
fcntl
import
struct
# Create an one-part Graph
# Create an one-part Graph
node_map
=
{
"_N"
:
F
.
tensor
([[
0
,
6
]],
F
.
int64
)}
node_map
=
{
"_N"
:
F
.
tensor
([[
0
,
6
]],
F
.
int64
)}
...
@@ -23,7 +16,7 @@ edge_map = {("_N", "_E", "_N"): F.tensor([[0, 7]], F.int64)}
...
@@ -23,7 +16,7 @@ edge_map = {("_N", "_E", "_N"): F.tensor([[0, 7]], F.int64)}
global_nid
=
F
.
tensor
([
0
,
1
,
2
,
3
,
4
,
5
],
F
.
int64
)
global_nid
=
F
.
tensor
([
0
,
1
,
2
,
3
,
4
,
5
],
F
.
int64
)
global_eid
=
F
.
tensor
([
0
,
1
,
2
,
3
,
4
,
5
,
6
],
F
.
int64
)
global_eid
=
F
.
tensor
([
0
,
1
,
2
,
3
,
4
,
5
,
6
],
F
.
int64
)
g
=
dgl
.
DGLG
raph
()
g
=
dgl
.
g
raph
(
[]
)
g
.
add_nodes
(
6
)
g
.
add_nodes
(
6
)
g
.
add_edges
(
0
,
1
)
# 0
g
.
add_edges
(
0
,
1
)
# 0
g
.
add_edges
(
0
,
2
)
# 1
g
.
add_edges
(
0
,
2
)
# 1
...
...
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