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

34 lines
815 B
C++
Raw Permalink Normal View History

2019-04-17 10:49:11 +08:00
//
// UnaryExecution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef UnaryExecution_hpp
#define UnaryExecution_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 UnaryExecution : public CommonExecution {
2019-04-17 10:49:11 +08:00
public:
2024-04-19 11:58:21 +08:00
UnaryExecution(const std::string &compute, const MNN::Op *op, Backend *backend);
2019-04-17 10:49:11 +08:00
virtual ~UnaryExecution() = default;
2024-04-19 11:58:21 +08:00
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2019-04-17 10:49:11 +08:00
private:
uint32_t mMaxWorkGroupSize;
std::vector<uint32_t> mGlobalWorkSize = {1, 1, 1};
2019-12-27 22:16:57 +08:00
std::vector<uint32_t> mLocalSize = {1, 1, 1};
2023-10-18 10:31:02 +08:00
std::set<std::string> mBuildOptions;
2019-04-17 10:49:11 +08:00
};
} // namespace OpenCL
} // namespace MNN
#endif /* UnaryExecution_hpp */