interpolate_aa.h 843 Bytes
Newer Older
1
2
3
4
5
6
7
8
#pragma once

#include <ATen/ATen.h>
#include "../macros.h"

namespace vision {
namespace ops {

9
VISION_API at::Tensor _interpolate_bilinear2d_aa(
10
11
12
13
    const at::Tensor& input,
    at::IntArrayRef output_size,
    bool align_corners = false);

14
VISION_API at::Tensor _interpolate_bicubic2d_aa(
15
16
17
18
    const at::Tensor& input,
    at::IntArrayRef output_size,
    bool align_corners = false);

19
20
namespace detail {

21
22
23
24
25
26
27
28
29
30
31
VISION_API at::Tensor _interpolate_bilinear2d_aa_backward(
    const at::Tensor& grad,
    at::IntArrayRef output_size,
    at::IntArrayRef input_size,
    bool align_corners = false);

VISION_API at::Tensor _interpolate_bicubic2d_aa_backward(
    const at::Tensor& grad,
    at::IntArrayRef output_size,
    at::IntArrayRef input_size,
    bool align_corners = false);
32
33
34
35
36

} // namespace detail

} // namespace ops
} // namespace vision