2022-11-14 09:30:22 +08:00
|
|
|
#pragma once
|
|
|
|
#include "cuda/cuda_common.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int nDims;
|
|
|
|
int oDims[4];
|
|
|
|
int inDims[4];
|
|
|
|
int inStride[4];
|
|
|
|
float scale[4];
|
2022-12-24 04:02:21 +08:00
|
|
|
float roiS[4];
|
|
|
|
float roiE[4];
|
2022-11-14 09:30:22 +08:00
|
|
|
} MetaData;
|
|
|
|
|
|
|
|
namespace infini {
|
|
|
|
void resize_kernel_nearest(float *in, float *out, const MetaData &metaData,
|
|
|
|
size_t num, int coordinateMode, int nearestMode);
|
|
|
|
void resize_kernel_linear(float *in, float *out, const MetaData &metaData,
|
|
|
|
size_t num, int coordinateMode);
|
2022-12-24 04:02:21 +08:00
|
|
|
void resize_kernel_cubic(float *in, float *out, const MetaData &metaData,
|
|
|
|
size_t num, int coordinateMode);
|
2022-11-14 09:30:22 +08:00
|
|
|
} // namespace infini
|