diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc b/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc index b83ce89bf88..3815743c0c4 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc @@ -161,7 +161,7 @@ void MatMulOpenCLKernel::PadWeight(std::vector weight_shape_4d, int ci, int int MatMulOpenCLKernel::InitWeights() { if (!in_tensors_[1]->IsConst()) { - return RET_OK; + return InitBias(); } // ABMCI @ ABCICO = ABMCO auto allocator = ocl_runtime_->GetAllocator();