forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGLConvolutionDepthwise.hpp
More file actions
35 lines (29 loc) · 1 KB
/
Copy pathGLConvolutionDepthwise.hpp
File metadata and controls
35 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// GLConvolutionDepthwise.h
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNNDEMO_GLCONVOLUTIONDEPTHWISE_H
#define MNNDEMO_GLCONVOLUTIONDEPTHWISE_H
#include "Execution.hpp"
#include "GLConvolution.hpp"
#include "MNN_generated.h"
namespace MNN {
namespace OpenGL {
class GLConvolutionDepthwise : public GPUConvolution {
public:
GLConvolutionDepthwise(const std::vector<Tensor *> &inputs, const Op *op, Backend *b);
virtual ~GLConvolutionDepthwise();
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
std::shared_ptr<GLTexture> mKernelTexture;
std::shared_ptr<GLSSBOBuffer> mBiasBuffer;
std::shared_ptr<GLProgram> mProgram;
std::function<void()> mSetUniform;
};
} // namespace OpenGL
} // namespace MNN
#endif // MNNDEMO_GLCONVOLUTION_H