MNN/source/backend/opengl/GLEltwise.hpp

31 lines
748 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// GLEltwise.h
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNNDEMO_GLELTWISE_H
#define MNNDEMO_GLELTWISE_H
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
#include "backend/opengl/GLProgram.hpp"
#include "backend/opengl/GLTexture.hpp"
2019-04-17 10:49:11 +08:00
#include "MNN_generated.h"
namespace MNN {
namespace OpenGL {
2019-04-17 10:49:11 +08:00
class GLEltwise : public MNN::Execution {
public:
GLEltwise(const std::vector<Tensor *> &inputs, const Op *op, Backend *bn);
2019-04-17 10:49:11 +08:00
virtual ~GLEltwise();
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
std::shared_ptr<GLProgram> mProgram;
};
} // namespace OpenGL
2019-04-17 10:49:11 +08:00
} // namespace MNN
#endif // MNNDEMO_GLELTWISE_H