| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef LAYER_CONCAT_VULKAN_H |
| | #define LAYER_CONCAT_VULKAN_H |
| |
|
| | #include "concat.h" |
| |
|
| | namespace ncnn { |
| |
|
| | class Concat_vulkan : virtual public Concat |
| | { |
| | public: |
| | Concat_vulkan(); |
| |
|
| | virtual int create_pipeline(const Option& opt); |
| | virtual int destroy_pipeline(const Option& opt); |
| |
|
| | using Concat::forward; |
| | virtual int forward(const std::vector<VkMat>& bottom_blobs, std::vector<VkMat>& top_blobs, VkCompute& cmd, const Option& opt) const; |
| | virtual int forward(const std::vector<VkImageMat>& bottom_blobs, std::vector<VkImageMat>& top_blobs, VkCompute& cmd, const Option& opt) const; |
| |
|
| | public: |
| | Pipeline* pipeline_concat[2]; |
| | Pipeline* pipeline_concat_pack4[2]; |
| | Pipeline* pipeline_concat_pack4to1[2]; |
| | Pipeline* pipeline_concat_pack8[2]; |
| | Pipeline* pipeline_concat_pack8to4[2]; |
| | Pipeline* pipeline_concat_pack8to1[2]; |
| | }; |
| |
|
| | } |
| |
|
| | #endif |
| |
|