Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for HeteroData node indexing in LocalGraphStore and LocalFeatureStore #8438

Merged
merged 15 commits into from
Nov 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update
  • Loading branch information
rusty1s committed Nov 29, 2023
commit 7c2cde894ff76c51eb3dd6ca12085df35a565dff
10 changes: 7 additions & 3 deletions test/loader/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ def test_cluster_gcn_correctness(get_dataset, sparse_format):
dataset = get_dataset('Cora')
data = dataset[0].clone()
data.n_id = torch.arange(data.num_nodes)
cluster_data = ClusterData(data, num_parts=10, log=False,
sparse_format=sparse_format)
cluster_data = ClusterData(
data,
num_parts=10,
log=False,
sparse_format=sparse_format,
)
loader = ClusterLoader(cluster_data, batch_size=3, shuffle=False)

for batch1 in loader:
Expand All @@ -181,7 +185,7 @@ def test_cluster_gcn_correctness(get_dataset, sparse_format):
batch1.edge_index,
sort_edge_index(
batch2.edge_index,
sort_by_row=False if sparse_format == 'csc' else True,
sort_by_row=sparse_format == 'csr',
),
)

Expand Down