| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef LAYER_BINARYOP_ARM_H |
| | #define LAYER_BINARYOP_ARM_H |
| |
|
| | #include "binaryop.h" |
| |
|
| | namespace ncnn { |
| |
|
| | class BinaryOp_arm : virtual public BinaryOp |
| | { |
| | public: |
| | BinaryOp_arm(); |
| |
|
| | virtual int forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const; |
| |
|
| | virtual int forward_inplace(Mat& bottom_top_blob, const Option& opt) const; |
| |
|
| | protected: |
| | #if NCNN_ARM82 |
| | int forward_fp16s(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const; |
| | int forward_inplace_fp16s(Mat& bottom_top_blob, const Option& opt) const; |
| | #endif |
| | #if NCNN_BF16 |
| | int forward_bf16s(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const; |
| | int forward_inplace_bf16s(Mat& bottom_top_blob, const Option& opt) const; |
| | #endif |
| | }; |
| |
|
| | } |
| |
|
| | #endif |
| |
|