mirror of https://github.com/alibaba/MNN.git
31 lines
849 B
C++
31 lines
849 B
C++
//
|
|
// VulkanElementWise.hpp
|
|
// MNN
|
|
//
|
|
// Created by MNN on 2019/01/31.
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
//
|
|
|
|
#ifndef VulkanElementWise_hpp
|
|
#define VulkanElementWise_hpp
|
|
|
|
#include <stdio.h>
|
|
#include "backend/vulkan/execution/VulkanBasicExecution.hpp"
|
|
|
|
namespace MNN {
|
|
class VulkanElementWise : public VulkanBasicExecution {
|
|
public:
|
|
VulkanElementWise(EltwiseType type, Backend *bn);
|
|
virtual ~VulkanElementWise();
|
|
|
|
virtual 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 *mElemenWisePipeline;
|
|
std::vector<std::shared_ptr<VulkanPipeline::DescriptorSet>> mSubDescriptorSets;
|
|
};
|
|
} // namespace MNN
|
|
|
|
#endif /* VulkanElementWise_hpp */
|