ps_roi_align.h 727 Bytes
Newer Older
1
2
#pragma once

3
4
#include <ATen/ATen.h>
#include "macros.h"
5
6
7
8
9

namespace vision {
namespace ops {

// C++ Forward
10
VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_align(
11
12
13
14
15
16
17
18
    const at::Tensor& input,
    const at::Tensor& rois,
    double spatial_scale,
    int64_t pooled_height,
    int64_t pooled_width,
    int64_t sampling_ratio);

// C++ Backward
19
VISION_API at::Tensor _ps_roi_align_backward(
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    const at::Tensor& grad,
    const at::Tensor& rois,
    const at::Tensor& channel_mapping,
    double spatial_scale,
    int64_t pooled_height,
    int64_t pooled_width,
    int64_t sampling_ratio,
    int64_t batch_size,
    int64_t channels,
    int64_t height,
    int64_t width);

} // namespace ops
} // namespace vision