Skip to content

Commit

Permalink
fix conv1x1 tune bug test=develop (#6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
daming5432 authored Sep 8, 2021
1 parent 557b9ee commit 1e4a3fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lite/kernels/opencl/conv_image_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,13 @@ void ConvImageCompute::SetLocalWorkSize(size_t repeats /*=4*/) {
static_cast<size_t>(tuned_in_map[5])};
int func_id = tuned_in_map[6];
if (func_id == 0) {
context.cl_context()->AddKernel(kernel_func_names_[0],
kernel_func_paths_[0],
build_options_[0],
time_stamp_);
kernel_key.str("");
kernel_key << kernel_func_names_[0] << build_options_[0] << time_stamp_;
kernel_ = context.cl_context()->GetKernel(kernel_key.str());
return;
} else if (func_id == 1) {
kernel_func_names_[0] = "conv2d_1x1_h1w5c1";
Expand Down

0 comments on commit 1e4a3fb

Please sign in to comment.