forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVulkanDeconvolution.hpp
More file actions
42 lines (35 loc) · 1.35 KB
/
Copy pathVulkanDeconvolution.hpp
File metadata and controls
42 lines (35 loc) · 1.35 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
36
37
38
39
40
41
42
//
// VulkanDeconvolution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanDeconvolution_hpp
#define VulkanDeconvolution_hpp
#include "VulkanBasicExecution.hpp"
#include "VulkanConvolution.hpp"
#include "VulkanMatrixMultier.hpp"
namespace MNN {
class VulkanDeconvolution : public VulkanBasicExecution {
public:
virtual ~VulkanDeconvolution() {
}
VulkanDeconvolution(Backend* bn, const Convolution2D* conv);
virtual ErrorCode onEncode(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs,
const VulkanCommandPool::Buffer* cmdBuffer) override;
static void writeConvolutionConst(VulkanConvolutionCommon::ConvolutionParameter* parameter,
const Convolution2DCommon* common, const Tensor* src, const Tensor* dst);
private:
std::shared_ptr<VulkanMatrixMultier> mMultiler;
std::shared_ptr<VulkanImage> mBias;
const VulkanPipeline* mIm2Col;
std::shared_ptr<VulkanPipeline::DescriptorSet> mIm2ColSet;
const VulkanPipeline* mCol2Im;
std::shared_ptr<VulkanPipeline::DescriptorSet> mCol2ImSet;
const VulkanSampler* mSampler;
const Convolution2DCommon* mConvCommonOption;
std::shared_ptr<VulkanBuffer> mConvParam;
};
} // namespace MNN
#endif /* VulkanDeconvolution_hpp */