mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-27 19:29:54 +08:00
binaryop bf16s
This commit is contained in:
+1095
-60
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,11 @@ public:
|
||||
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:
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
} // namespace ncnn
|
||||
|
||||
@@ -39,6 +39,7 @@ static int test_binaryop(const ncnn::Mat& _a, const ncnn::Mat& _b, int op_type)
|
||||
ncnn::Option opt;
|
||||
opt.num_threads = 1;
|
||||
opt.use_vulkan_compute = true;
|
||||
opt.use_int8_inference = false;
|
||||
opt.use_fp16_packed = false;
|
||||
opt.use_fp16_storage = false;
|
||||
opt.use_fp16_arithmetic = false;
|
||||
@@ -78,6 +79,7 @@ static int test_binaryop(const ncnn::Mat& _a, float b, int op_type)
|
||||
ncnn::Option opt;
|
||||
opt.num_threads = 1;
|
||||
opt.use_vulkan_compute = true;
|
||||
opt.use_int8_inference = false;
|
||||
opt.use_fp16_packed = false;
|
||||
opt.use_fp16_storage = false;
|
||||
opt.use_fp16_arithmetic = false;
|
||||
|
||||
Reference in New Issue
Block a user