MNN/source/backend/vulkan/execution/VulkanPool.hpp

30 lines
790 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// VulkanPool.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanPool_hpp
#define VulkanPool_hpp
2019-12-27 22:16:57 +08:00
#include "backend/vulkan/execution/VulkanBasicExecution.hpp"
2019-04-17 10:49:11 +08:00
namespace MNN {
class VulkanPool : public VulkanBasicExecution {
public:
VulkanPool(const Op* op, Backend* bn);
virtual ~VulkanPool();
ErrorCode onEncode(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs,
const VulkanCommandPool::Buffer* cmdBuffer) override;
private:
std::shared_ptr<VulkanBuffer> mConstBuffer;
const VulkanPipeline* mPoolPipeline;
const Pool* mCommon;
std::shared_ptr<VulkanPipeline::DescriptorSet> mDescriptorSet;
};
} // namespace MNN
#endif /* VulkanPool_hpp */