chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:33:03 +08:00
commit 5b57521aa1
8226 changed files with 3425766 additions and 0 deletions
@@ -0,0 +1,40 @@
//
// InterpPlugin.hpp
// MNN
//
// Created by MNN on b'2020/08/14'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef InterpPlugin_hpp
#define InterpPlugin_hpp
#include <MNN/MNNDefine.h>
#include "CommonPlugin.hpp"
namespace MNN {
class InterpPlugin : public CommonPlugin::Enqueue {
public:
InterpPlugin(const Op* op, const MNNTRTPlugin::Plugin* plugin);
virtual ~InterpPlugin();
virtual int onEnqueue(int batchSize, const void* const* inputs, void** outputs, void*, nvinfer1::DataType dataType,
cudaStream_t stream) override;
cudaError_t InterpExecute(nvinfer1::DataType dataType, const int count, const float heightScale, const float widthScale,
const float heightOffset, const float widthOffset, const int inputHeight, const int inputWidth,
const int outputHeight, const int outputWidth, const float* bottom_data, float* top_data,
cudaStream_t stream);
private:
int mInputChannel;
int mChannelBlocks;
int mOutputWidth;
float mHeightScale;
float mWidthScale;
float mWidthOffset;
float mHeightOffset;
int mInputHeight;
int mInputWidth;
int mOutputHeight;
int mResizeType;
};
} // namespace MNN
#endif