roi_pool_pytorch.h 619 Bytes
Newer Older
1
// Copyright (c) OpenMMLab. All rights reserved
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef ROI_POOL_PYTORCH_H
#define ROI_POOL_PYTORCH_H
#include <torch/extension.h>
using namespace at;

#ifdef MMCV_WITH_CUDA
void roi_pool_forward_cuda(Tensor input, Tensor rois, Tensor output,
                           Tensor argmax, int pooled_height, int pooled_width,
                           float spatial_scale);

void roi_pool_backward_cuda(Tensor grad_output, Tensor rois, Tensor argmax,
                            Tensor grad_input, int pooled_height,
                            int pooled_width, float spatial_scale);
#endif
#endif  // ROI_POOL_PYTORCH_H