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

35 lines
1.0 KiB
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// DepthwiseConvExecution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef DepthwiseConvExecution_hpp
#define DepthwiseConvExecution_hpp
#include "ConvExecution.hpp"
namespace MNN {
namespace OpenCL {
2024-04-19 11:58:21 +08:00
class DepthwiseConvExecution : public ConvCommonExecution, public CommonExecution {
2019-04-17 10:49:11 +08:00
public:
DepthwiseConvExecution(const std::vector<Tensor *> &inputs, const MNN::Op *op, Backend *backend);
2024-04-19 11:58:21 +08:00
DepthwiseConvExecution(std::shared_ptr<ConvResource> resource, const Op* op, Backend* backend);
2019-04-17 10:49:11 +08:00
virtual ~DepthwiseConvExecution();
2024-04-19 11:58:21 +08:00
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual bool onClone(Backend* bn, const Op* op, Execution** dst) override;
2019-04-17 10:49:11 +08:00
private:
std::vector<int> mPaddings{0, 0};
uint32_t mMaxWorkGroupSize;
std::vector<uint32_t> mGlobalWorkSize{1, 1, 1};
std::vector<uint32_t> mLocalWorkSize{1, 1, 1, 1};
};
} // namespace OpenCL
} // namespace MNN
#endif /* DepthwiseConvExecution_hpp */