forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVulkanGroupConvolution.hpp
More file actions
35 lines (30 loc) · 1.09 KB
/
Copy pathVulkanGroupConvolution.hpp
File metadata and controls
35 lines (30 loc) · 1.09 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
//
// VulkanGroupConvolution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanGroupConvolution_hpp
#define VulkanGroupConvolution_hpp
#include "VulkanConvolutionImpl.hpp"
namespace MNN {
class VulkanGroupConvolution : public Execution {
public:
VulkanGroupConvolution(const Op *op, Backend *backend);
virtual ~VulkanGroupConvolution();
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
VulkanBackend *mBackend;
Tensor mTempSrc;
Tensor mTempDst;
std::vector<Tensor *> mTempInputs;
std::vector<Tensor *> mTempOutputs;
const Convolution2D *mConvParameter;
std::vector<std::tuple<std::shared_ptr<VulkanCommandPool::Buffer>, std::shared_ptr<Execution>,
std::shared_ptr<VulkanCommandPool::Buffer>>>
mSubConvolutions;
};
} // namespace MNN
#endif /* VulkanGroupConvolution_hpp */