Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ConvolutionDepthwise allocator not updated #4173

Merged
merged 1 commit into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/layer/arm/convolutiondepthwise_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ int ConvolutionDepthWise_arm::forward_int8_arm(const Mat& bottom_blob, Mat& top_
const ncnn::Layer* op = group_ops[g];

Option opt_g = opt;
opt_g.blob_allocator = top_blob.allocator;
opt_g.blob_allocator = top_blob_unpacked.allocator;

// forward
op->forward(bottom_blob_bordered_g, top_blob_g, opt_g);
Expand Down
2 changes: 1 addition & 1 deletion src/layer/mips/convolutiondepthwise_mips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ int ConvolutionDepthWise_mips::forward_int8_mips(const Mat& bottom_blob, Mat& to
const ncnn::Layer* op = group_ops[g];

Option opt_g = opt;
opt_g.blob_allocator = top_blob.allocator;
opt_g.blob_allocator = top_blob_unpacked.allocator;

// forward
op->forward(bottom_blob_bordered_g, top_blob_g, opt_g);
Expand Down
2 changes: 1 addition & 1 deletion src/layer/x86/convolutiondepthwise_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ int ConvolutionDepthWise_x86::forward_int8_x86(const Mat& bottom_blob, Mat& top_
const ncnn::Layer* op = group_ops[g];

Option opt_g = opt;
opt_g.blob_allocator = top_blob.allocator;
opt_g.blob_allocator = top_blob_unpacked.allocator;

// forward
op->forward(bottom_blob_bordered_g, top_blob_g, opt_g);
Expand Down