Skip to content

Commit

Permalink
[WARNINGS] Removing warnings appearing in several distributed tests. (
Browse files Browse the repository at this point in the history
  • Loading branch information
drivanov committed Aug 8, 2024
1 parent 7aa8a50 commit 83595e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/distributed/test_distributed_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def start_hetero_sample_client(
assert "feat" not in dist_graph.nodes["n2"].data
assert "feat" not in dist_graph.nodes["n3"].data
nodes = {
k: torch.tensor(v, dtype=dist_graph.idtype) for k, v in nodes.items()
k: v.type(dist_graph.idtype).clone().detach() for k, v in nodes.items()
}
if gpb is None:
gpb = dist_graph.get_partition_book()
Expand Down Expand Up @@ -553,7 +553,7 @@ def start_hetero_etype_sample_client(
assert "feat" not in dist_graph.nodes["n2"].data
assert "feat" not in dist_graph.nodes["n3"].data
nodes = {
k: torch.tensor(v, dtype=dist_graph.idtype) for k, v in nodes.items()
k: v.type(dist_graph.idtype).clone().detach() for k, v in nodes.items()
}

if (not use_graphbolt) and dist_graph.local_partition is not None:
Expand Down Expand Up @@ -915,7 +915,7 @@ def start_bipartite_sample_client(
assert "feat" in dist_graph.nodes["user"].data
assert "feat" in dist_graph.nodes["game"].data
nodes = {
k: torch.tensor(v, dtype=dist_graph.idtype) for k, v in nodes.items()
k: v.type(dist_graph.idtype).clone().detach() for k, v in nodes.items()
}
if gpb is None:
gpb = dist_graph.get_partition_book()
Expand Down Expand Up @@ -951,7 +951,7 @@ def start_bipartite_etype_sample_client(
assert "feat" in dist_graph.nodes["user"].data
assert "feat" in dist_graph.nodes["game"].data
nodes = {
k: torch.tensor(v, dtype=dist_graph.idtype) for k, v in nodes.items()
k: v.type(dist_graph.idtype).clone().detach() for k, v in nodes.items()
}

if not use_graphbolt and dist_graph.local_partition is not None:
Expand Down

0 comments on commit 83595e6

Please sign in to comment.