Skip to content

Commit

Permalink
test winograd23 int8
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Oct 10, 2023
1 parent 42a95df commit 8ee906a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/test_convolution_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,30 @@ static int test_convolution_int8(int w, int h, int c, int outch, int kernel, int
return ret;
}

if (kernel == 3 && dilation == 1 && stride == 1)
{
ncnn::Option opt;
opt.num_threads = 1;
opt.use_packing_layout = true;
opt.use_fp16_packed = false;
opt.use_fp16_storage = false;
opt.use_fp16_arithmetic = false;
opt.use_bf16_storage = false;
opt.use_shader_pack8 = false;
opt.use_image_storage = false;
opt.use_sgemm_convolution = false;
opt.use_winograd_convolution = true;
opt.use_winograd23_convolution = true;
opt.use_winograd43_convolution = false;

ret = test_layer_opt<ncnn::Convolution>("Convolution", pd, weights, opt, a, requant ? 1.0f : 0.001f, 0, flag);
if (ret != 0)
{
fprintf(stderr, "test_convolution_int8 failed w=%d h=%d c=%d outch=%d kernel=%d dilation=%d stride=%d pad=%d bias=%d requant=%d act=%d actparams=[%f,%f]\n", w, h, c, outch, kernel, dilation, stride, pad, bias, requant, activation_type, activation_params[0], activation_params[1]);
return ret;
}
}

{
ncnn::Option opt;
opt.num_threads = 1;
Expand Down

0 comments on commit 8ee906a

Please sign in to comment.