Skip to content

Commit

Permalink
[GraphBolt] Fix MiniBatch blocks. (#6766)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
yxy235 and Ubuntu authored Dec 18, 2023
1 parent 43fb73d commit 1db71cf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions python/dgl/graphbolt/minibatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,12 @@ def blocks(self):
(
v.indptr,
v.indices,
torch.tensor([]),
torch.arange(
0,
v.indptr[-1],
device=v.indptr.device,
dtype=v.indptr.dtype,
),
),
)
for etype, v in subgraph.node_pairs.items()
Expand All @@ -421,7 +426,12 @@ def blocks(self):
(
node_pairs.indptr,
node_pairs.indices,
torch.tensor([]),
torch.arange(
0,
node_pairs.indptr[-1],
device=node_pairs.indptr.device,
dtype=node_pairs.indptr.dtype,
),
),
)
num_src_nodes = original_row_node_ids.size(0)
Expand Down

0 comments on commit 1db71cf

Please sign in to comment.