Skip to content

Commit

Permalink
Update convolution.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Jun 10, 2024
1 parent 3e3b6fd commit 50808d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/layer/convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ int Convolution::forward(const Mat& bottom_blob, Mat& top_blob, const Option& op
op->create_pipeline(opt);

// forward
op->forward(bottom_blob, top_blob, opt);
int ret = op->forward(bottom_blob, top_blob, opt);

op->destroy_pipeline(opt);

delete op;

return 0;
return ret;
}
}

Expand Down Expand Up @@ -401,6 +401,8 @@ int Convolution::forward_int8(const Mat& bottom_blob, Mat& top_blob, const Optio
opt_g.blob_allocator = opt.workspace_allocator;

quantize_to_int8(bottom_blob, bottom_blob_unbordered, bottom_blob_int8_scales, opt_g);
if (bottom_blob_unbordered.empty())
return -100;
}

Mat bottom_blob_bordered;
Expand Down

0 comments on commit 50808d7

Please sign in to comment.