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

37 lines
853 B
C++
Raw Permalink Normal View History

2020-11-05 16:41:56 +08:00
//
// RasterExecution.hpp
// MNN
//
// Created by MNN on 2020/05/12.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef RaterExecution_hpp
#define RaterExecution_hpp
#include "CommonExecution.hpp"
namespace MNN {
namespace OpenCL {
class RasterExecution : public CommonExecution {
public:
RasterExecution(const std::vector<Tensor *> &inputs, const MNN::Op *op, Backend *backend);
virtual ~RasterExecution() = default;
2024-04-19 11:58:21 +08:00
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2020-11-05 16:41:56 +08:00
private:
2023-08-21 14:51:54 +08:00
bool CanCombine(const std::vector<Tensor *> &outputs);
2020-11-05 16:41:56 +08:00
std::map<Tensor*, cl::Buffer *> mTempInput;
cl::Buffer *mTempOutput;
OpenCLBackend *mOpenCLBackend;
bool mNeedZero = false;
bool mFast = false;
};
} // namespace OpenCL
} // namespace MNN
#endif