diff --git a/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc index 4a65dad9b52..b0a8ededa46 100644 --- a/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc @@ -53,6 +53,8 @@ void StridedSliceCPUKernel::InitFastRunParam() { for (size_t i = static_cast(split_axis_ + 1); i < in_shape.size(); i++) { inner_ *= in_shape[i]; } + parallel_on_split_axis_ = false; + parallel_on_outer_ = false; outer_ == 1 ? (parallel_on_split_axis_ = true) : (parallel_on_outer_ = true); if (UpdateThreadNumPass(TC_TYPE(PrimitiveType_StridedSlice, parallel_on_outer_), 1, 1,