metis_cpu.h 522 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
7
                            torch::optional<torch::Tensor> optional_value,
                            int64_t num_parts, bool recursive);
rusty1s's avatar
rusty1s committed
8
9
10
11
12

torch::Tensor mt_partition_cpu(torch::Tensor rowptr, torch::Tensor col,
                               torch::optional<torch::Tensor> optional_value,
                               int64_t num_parts, bool recursive,
                               int64_t num_workers);