segment_csr_cuda.h 494 Bytes
Newer Older
limm's avatar
limm committed
1
2
// !!! This is a file automatically generated by hipify!!!
#include <ATen/dtk_macros.h>
quyuanhao123's avatar
quyuanhao123 committed
3
4
#pragma once

limm's avatar
limm committed
5
#include "../extensions.h"
quyuanhao123's avatar
quyuanhao123 committed
6
7
8
9
10
11
12
13

std::tuple<torch::Tensor, torch::optional<torch::Tensor>>
segment_csr_cuda(torch::Tensor src, torch::Tensor indptr,
                 torch::optional<torch::Tensor> optional_out,
                 std::string reduce);

torch::Tensor gather_csr_cuda(torch::Tensor src, torch::Tensor indptr,
                              torch::optional<torch::Tensor> optional_out);