File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -103,4 +103,37 @@ void BicubicInterpKernel(
103103 int align_mode,
104104 DenseTensor* output);
105105
106+ template <typename T, typename Context>
107+ void LegacyBilinearInterpKernel (
108+ const Context& dev_ctx,
109+ const DenseTensor& x,
110+ const paddle::optional<DenseTensor>& out_size,
111+ const paddle::optional<std::vector<const DenseTensor*>>& size_tensor,
112+ const paddle::optional<DenseTensor>& scale_tensor,
113+ const std::string& data_layout,
114+ int out_d,
115+ int out_h,
116+ int out_w,
117+ float scale,
118+ const std::string& interp_method,
119+ bool align_corners,
120+ int align_mode,
121+ DenseTensor* output);
122+
123+ template <typename T, typename Context>
124+ void LegacyNearestInterpKernel (
125+ const Context& dev_ctx,
126+ const DenseTensor& x,
127+ const paddle::optional<DenseTensor>& out_size,
128+ const paddle::optional<std::vector<const DenseTensor*>>& size_tensor,
129+ const paddle::optional<DenseTensor>& scale_tensor,
130+ const std::string& data_layout,
131+ int out_d,
132+ int out_h,
133+ int out_w,
134+ float scale,
135+ const std::string& interp_method,
136+ bool align_corners,
137+ int align_mode,
138+ DenseTensor* output);
106139} // namespace phi
You can’t perform that action at this time.
0 commit comments