diff --git a/source/backend/cpu/CPUUnary.cpp b/source/backend/cpu/CPUUnary.cpp index ce4bb9f50..a32178a99 100644 --- a/source/backend/cpu/CPUUnary.cpp +++ b/source/backend/cpu/CPUUnary.cpp @@ -480,14 +480,14 @@ ErrorCode CPUUnary::onExecute(const std::vector &inputs, const std::ve return NO_ERROR; } if (mProcInt8) { - QuanPrePostParameters params; - params.inputScale = mInpScale.data(); - params.outputScale = mOupScale.data(); - params.inputZeroPoint= mInpZeroPoint.data(); - params.outputZeroPoint = mOupZeroPoint.data(); - params.maxValue = mMaxMinValue[1]; - params.minValue = mMaxMinValue[0]; MNN_CONCURRENCY_BEGIN(tId, schedule.second) { + QuanPrePostParameters params; + params.inputScale = mInpScale.data(); + params.outputScale = mOupScale.data(); + params.inputZeroPoint= mInpZeroPoint.data(); + params.outputZeroPoint = mOupZeroPoint.data(); + params.maxValue = mMaxMinValue[1]; + params.minValue = mMaxMinValue[0]; int start = schedule.first * (int)tId; int realSize = schedule.first; if (tId == schedule.second -1 ) {