Commit c74b62c9 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 07a6928b
...@@ -49,7 +49,7 @@ def sample_rw(src: SparseTensor, num_root_nodes: int, ...@@ -49,7 +49,7 @@ def sample_rw(src: SparseTensor, num_root_nodes: int,
rowptr, col, _ = src.csr() rowptr, col, _ = src.csr()
start = np.random.choice(src.size(0), size=num_root_nodes, replace=False) start = np.random.choice(src.size(0), size=num_root_nodes, replace=False)
start = torch.from_numpy(start).to(src.device()) start = torch.from_numpy(start).to(src.device(), torch.long)
out = torch.ops.torch_sparse.random_walk(rowptr, col, start, walk_length) out = torch.ops.torch_sparse.random_walk(rowptr, col, start, walk_length)
......
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