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

35 lines
1.0 KiB
C++

//
// DepthwiseDeconvExecution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef DepthwiseDeconvExecution_hpp
#define DepthwiseDeconvExecution_hpp
#include "ConvExecution.hpp"
namespace MNN {
namespace OpenCL {
class DepthwiseDeconvExecution : public ConvCommonExecution, public CommonExecution {
public:
DepthwiseDeconvExecution(const std::vector<Tensor *> &inputs, const MNN::Op *op, Backend *backend);
DepthwiseDeconvExecution(std::shared_ptr<ConvResource> resource, const Op* op, Backend* backend);
virtual ~DepthwiseDeconvExecution();
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;
private:
std::vector<uint32_t> mLWS{0, 0, 0, 0};
std::vector<uint32_t> mGWS{0, 0, 0, 0};
std::vector<int> mPaddings{0, 0};
uint32_t mMaxWorkGroupSize;
};
} // namespace OpenCL
} // namespace MNN
#endif /* DepthwiseDeconvExecution_hpp */