"test/test_scatter.py" did not exist on "2a7622b6f319ce266b1cb520876d99c639cbdc5f"
metis_cpu.h 614 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
#pragma once

#include <torch/extension.h>

rusty1s's avatar
rusty1s committed
5
torch::Tensor partition_cpu(torch::Tensor rowptr, torch::Tensor col,
rusty1s's avatar
update  
rusty1s committed
6
                            torch::optional<torch::Tensor> optional_value,
rusty1s's avatar
rename  
rusty1s committed
7
                            torch::optional<torch::Tensor> optional_node_weight,
rusty1s's avatar
update  
rusty1s committed
8
                            int64_t num_parts, bool recursive);
rusty1s's avatar
rusty1s committed
9

rusty1s's avatar
rename  
rusty1s committed
10
11
12
13
14
torch::Tensor
mt_partition_cpu(torch::Tensor rowptr, torch::Tensor col,
                 torch::optional<torch::Tensor> optional_value,
                 torch::optional<torch::Tensor> optional_node_weight,
                 int64_t num_parts, bool recursive, int64_t num_workers);