| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef LAYER_CAST_VULKAN_H |
| | #define LAYER_CAST_VULKAN_H |
| |
|
| | #include "cast.h" |
| |
|
| | namespace ncnn { |
| |
|
| | class Cast_vulkan : virtual public Cast |
| | { |
| | public: |
| | Cast_vulkan(); |
| |
|
| | virtual int create_pipeline(const Option& opt); |
| | virtual int destroy_pipeline(const Option& opt); |
| |
|
| | using Cast::forward; |
| | virtual int forward(const VkMat& bottom_blob, VkMat& top_blob, VkCompute& cmd, const Option& opt) const; |
| | virtual int forward(const VkImageMat& bottom_blob, VkImageMat& top_blob, VkCompute& cmd, const Option& opt) const; |
| |
|
| | public: |
| | Pipeline* pipeline_cast_fp32_to_fp16; |
| | Pipeline* pipeline_cast_fp32_to_fp16_pack4; |
| | Pipeline* pipeline_cast_fp32_to_fp16_pack8; |
| | Pipeline* pipeline_cast_fp16_to_fp32; |
| | Pipeline* pipeline_cast_fp16_to_fp32_pack4; |
| | Pipeline* pipeline_cast_fp16_to_fp32_pack8; |
| | }; |
| |
|
| | } |
| |
|
| | #endif |
| |
|