Commit 5b9304b9 authored by bowendeng's avatar bowendeng
Browse files

code clean

parent 0090f4ed
......@@ -18,9 +18,8 @@ def metis_wgt(x):
return (x_ratio * arange + tick).long(), tick, arange
def partition(
src: SparseTensor, num_parts: int, recursive: bool = False
) -> Tuple[SparseTensor, torch.Tensor, torch.Tensor]:
def partition(src: SparseTensor, num_parts: int, recursive: bool = False
) -> Tuple[SparseTensor, torch.Tensor, torch.Tensor]:
rowptr, col = src.storage.rowptr().cpu(), src.storage.col().cpu()
edge_wgt = src.storage.value().cpu()
edge_wgt = metis_wgt(edge_wgt)[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment