2019-04-17 10:49:11 +08:00
|
|
|
//
|
|
|
|
// InterpExecution.hpp
|
|
|
|
// MNN
|
|
|
|
//
|
|
|
|
// Created by MNN on 2019/02/02.
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef InterpExecution_hpp
|
|
|
|
#define InterpExecution_hpp
|
|
|
|
|
2024-04-19 11:58:21 +08:00
|
|
|
#include "CommonExecution.hpp"
|
2019-04-17 10:49:11 +08:00
|
|
|
|
|
|
|
namespace MNN {
|
|
|
|
namespace OpenCL {
|
|
|
|
|
2024-04-19 11:58:21 +08:00
|
|
|
class InterpExecution : public CommonExecution {
|
2019-04-17 10:49:11 +08:00
|
|
|
public:
|
|
|
|
InterpExecution(const std::vector<Tensor *> &inputs, const MNN::Op *op, Backend *backend);
|
|
|
|
virtual ~InterpExecution() = default;
|
|
|
|
|
2024-04-19 11:58:21 +08:00
|
|
|
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
2020-05-28 19:04:27 +08:00
|
|
|
|
2019-04-17 10:49:11 +08:00
|
|
|
|
|
|
|
private:
|
2020-05-28 19:04:27 +08:00
|
|
|
std::vector<uint32_t> mLWS{0, 0, 0, 0};
|
|
|
|
std::vector<uint32_t> mGWS{0, 0, 0, 0};
|
2019-04-17 10:49:11 +08:00
|
|
|
uint32_t mMaxWorkGroupSize;
|
|
|
|
OpenCLBackend *mOpenCLBackend;
|
2020-11-05 16:41:56 +08:00
|
|
|
float mCordTransform[4];
|
2019-04-17 10:49:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace OpenCL
|
|
|
|
} // namespace MNN
|
|
|
|
#endif /* InterpExecution_hpp */
|