MNN/source/backend/opencl/execution/image/FuseExecution.hpp

33 lines
834 B
C++
Raw Permalink Normal View History

2023-02-15 10:30:27 +08:00
//
// FuseExecution.hpp
// MNN
//
// Created by MNN on 2022/11/02.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef FuseExecution_hpp
#define FuseExecution_hpp
2024-04-19 11:58:21 +08:00
#include "CommonExecution.hpp"
2023-02-15 10:30:27 +08:00
namespace MNN {
namespace OpenCL {
2024-04-19 11:58:21 +08:00
class FuseExecution : public CommonExecution {
2023-02-15 10:30:27 +08:00
public:
FuseExecution(const std::vector<Tensor *> &inputs, Backend *backend, const Op* op);
virtual ~FuseExecution() = default;
2024-04-19 11:58:21 +08:00
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2023-02-15 10:30:27 +08:00
private:
std::string mKernelName;
uint32_t mMaxWorkGroupSize;
OpenCLBackend *mOpenCLBackend;
std::vector<uint32_t> mGlobalWorkSize{1, 1, 1};
std::vector<uint32_t> mLocalWorkSize{1, 1, 1, 1};
};
} // namespace OpenCL
} // namespace MNN
#endif /* FuseExecution_hpp */