MNN/source/backend/vulkan/execution/VulkanDeconvolutionDepthwis...

40 lines
1.1 KiB
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
2019-05-09 10:20:56 +08:00
// VulkanDeconvolutionDepthwise.hpp
2019-04-17 10:49:11 +08:00
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
2019-05-09 10:20:56 +08:00
#ifndef VulkanDeconvolutionDepthwise_hpp
#define VulkanDeconvolutionDepthwise_hpp
2019-12-27 22:16:57 +08:00
#include "backend/vulkan/execution/VulkanBasicExecution.hpp"
#include "backend/vulkan/execution/VulkanDeconvolution.hpp"
2019-04-17 10:49:11 +08:00
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
2019-05-09 10:20:56 +08:00
#endif /* VulkanDeconvolutionDepthwise_hpp */