// // VulkanSoftmax.hpp // MNN // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef VulkanSoftmax_hpp #define VulkanSoftmax_hpp #include #include "VulkanBasicExecution.hpp" #include "VulkanImageConverter.hpp" namespace MNN { class VulkanSoftmax : public VulkanBasicExecution { public: VulkanSoftmax(const Op* op, Backend* bn, const uint32_t axisIndex); virtual ~VulkanSoftmax(); ErrorCode onEncode(const std::vector& inputs, const std::vector& outputs, const VulkanCommandPool::Buffer* cmdBuffer) override; private: std::shared_ptr mSoftmaxConstBuffer; const VulkanPipeline* mSoftmaxPipeline; std::shared_ptr mDescriptorSet; uint32_t mAxisIndex; }; } // namespace MNN #endif /* VulkanSoftmax_hpp */