#pragma once
#include <cuda_runtime_api.h>
#include "megcore_cdefs.h"
#include "src/common/cv/enums.h"
namespace megdnn {
namespace cuda {
namespace resize {
template <typename ctype>
void forward_proxy(
bool is_nhwc, InterpolationMode imode, const ctype* src, ctype* dst, int N,
int C, int IH, int IW, int OH, int OW, int S_IN, int S_IC, int S_IH, int S_IW,
cudaStream_t stream);
template <typename ctype>
void forward_proxy_nchw4(
const ctype* src, ctype* dst, int N, int C, int IH, int IW, int OH, int OW,
cudaStream_t stream);
void backward_data_proxy(
InterpolationMode imode, const float* diff, float* grad, int N, int C, int IH,
int IW, int OH, int OW, cudaStream_t stream);
} } }