Skip to content

Commit

Permalink
change format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Oct 14, 2024
1 parent 0e9cf4c commit beab715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/dgl/distributed/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ def get_homogeneous(g, balance_ntypes):
)
val = np.cumsum(
val
).tolist()# note computing the cumulative sum of array elements.
).tolist() # note computing the cumulative sum of array elements.
assert val[-1] == g.num_nodes(ntype)
for etype in g.canonical_etypes:
etype_id = g.get_etype_id(etype)
Expand Down
2 changes: 1 addition & 1 deletion tools/distpartitioning/data_shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ def prepare_local_data(src_data, local_part_id):
for rank_id, last_id in enumerate(gather_list):
prev_last_ids[
rank_id + (local_part_id * world_size)
] = last_id.item()
] = last_id.item()

if rank == 0:
# get meta-data from all partitions and merge them on rank-0
Expand Down

0 comments on commit beab715

Please sign in to comment.