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

38 lines
864 B
C++
Raw Normal View History

2019-12-27 22:16:57 +08:00
//
// MultiInputDWConvExecution.hpp
2019-12-27 22:16:57 +08:00
// MNN
//
// Created by MNN on 2019/10/22.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MultiInputDWConvExecution_hpp
#define MultiInputDWConvExecution_hpp
2019-12-27 22:16:57 +08:00
2024-04-19 11:58:21 +08:00
#include "CommonExecution.hpp"
2019-12-27 22:16:57 +08:00
namespace MNN {
namespace OpenCL {
class MultiInputDWConvExecution : public CommonExecution {
2019-12-27 22:16:57 +08:00
public:
MultiInputDWConvExecution(const MNN::Op *op, Backend *backend);
virtual ~MultiInputDWConvExecution();
2019-12-27 22:16:57 +08:00
2024-04-19 11:58:21 +08:00
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2019-12-27 22:16:57 +08:00
private:
PadMode mPadMode;
std::vector<int> mStrides{1, 1};
std::vector<int> mPaddings{0, 0};
std::vector<int> mDilations{1, 1};
std::shared_ptr<Tensor> mFilter;
2020-11-05 16:41:56 +08:00
bool isRelu = false;
bool isRelu6 = false;
2019-12-27 22:16:57 +08:00
};
}
}
#endif /* MultiInputDWConvExecution_hpp */