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

31 lines
745 B
C++
Raw Permalink Normal View History

2019-12-27 22:16:57 +08:00
//
// TrainableParamExecution.hpp
// MNN
//
// Created by MNN on 2019/10/24.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef TrainableParamExecution_hpp
#define TrainableParamExecution_hpp
2024-04-19 11:58:21 +08:00
#include "CommonExecution.hpp"
2019-12-27 22:16:57 +08:00
namespace MNN {
namespace OpenCL {
class TrainableParamExecution : public CommonExecution {
public:
TrainableParamExecution(const std::vector<Tensor *> &inputs, const MNN::Op *op, Backend *backend);
virtual ~TrainableParamExecution();
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
const MNN::Op *mOp;
bool mInitialized;
};
} // namespace OpenCL
} // namespace MNN
#endif /* TrainableParamExecution_hpp */