forked from InfiniTensor/InfiniCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterpolate.hpp
More file actions
30 lines (22 loc) · 907 Bytes
/
interpolate.hpp
File metadata and controls
30 lines (22 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "infinicore.h"
#include "../device.hpp"
#include "../graph/graph.hpp"
#include "common/op.hpp"
#include <cstdint>
#include <string>
#include <vector>
namespace infinicore::op {
INFINICORE_GRAPH_OP_CLASS(Interpolate, Tensor, const Tensor &, std::string, std::vector<int64_t>, std::vector<double>, int);
__export Tensor interpolate(const Tensor &input,
std::string mode,
std::vector<int64_t> size,
std::vector<double> scale_factor,
int align_corners);
__export void interpolate_(Tensor out,
const Tensor &input,
std::string mode,
std::vector<int64_t> size,
std::vector<double> scale_factor,
int align_corners);
} // namespace infinicore::op