roi_align.h 698 Bytes
Newer Older
1
2
#pragma once

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

namespace vision {
namespace ops {

9
VISION_API at::Tensor roi_align(
10
11
12
13
14
15
16
17
    const at::Tensor& input,
    const at::Tensor& rois,
    double spatial_scale,
    int64_t pooled_height,
    int64_t pooled_width,
    int64_t sampling_ratio,
    bool aligned);

18
19
namespace detail {

20
at::Tensor _roi_align_backward(
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    const at::Tensor& grad,
    const at::Tensor& rois,
    double spatial_scale,
    int64_t pooled_height,
    int64_t pooled_width,
    int64_t batch_size,
    int64_t channels,
    int64_t height,
    int64_t width,
    int64_t sampling_ratio,
    bool aligned);

} // namespace detail

35
36
} // namespace ops
} // namespace vision