interpolate_aa.h 652 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

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

namespace vision {
namespace ops {

VISION_API at::Tensor _interpolate_linear_aa(
    const at::Tensor& input,
    at::IntArrayRef output_size,
    bool align_corners = false);

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

19
20
21
22
23
24
25
26
27
28
29
30
namespace detail {

// TODO: Implement backward function
// at::Tensor _interpolate_linear_aa_backward(
//     const at::Tensor& grad,
//     at::IntArrayRef output_size,
//     bool align_corners=false);

} // namespace detail

} // namespace ops
} // namespace vision