forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVulkanDeconvolutionDepthwise.hpp
More file actions
39 lines (31 loc) · 1.1 KB
/
Copy pathVulkanDeconvolutionDepthwise.hpp
File metadata and controls
39 lines (31 loc) · 1.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
36
37
38
39
//
// VulkanDeconvolutionDepthwise.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanDeconvolutionDepthwise_hpp
#define VulkanDeconvolutionDepthwise_hpp
#include "VulkanBasicExecution.hpp"
#include "VulkanDeconvolution.hpp"
namespace MNN {
class VulkanDeconvolutionDepthwise : public VulkanBasicExecution {
public:
virtual ~VulkanDeconvolutionDepthwise() {
}
VulkanDeconvolutionDepthwise(Backend* bn, const Convolution2D* conv);
virtual ErrorCode onEncode(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs,
const VulkanCommandPool::Buffer* cmdBuffer) override;
private:
std::shared_ptr<VulkanImage> mBias;
std::shared_ptr<VulkanImage> mKernel;
const VulkanPipeline* mPipeline;
std::shared_ptr<VulkanPipeline::DescriptorSet> mPipelineSet;
const VulkanSampler* mSampler;
const Convolution2DCommon* mConvCommonOption;
std::shared_ptr<VulkanBuffer> mConvParam;
int mLocalSize[3];
};
} // namespace MNN
#endif /* VulkanDeconvolutionDepthwise_hpp */