Skip to content

Commit

Permalink
[MNN:Bugfix] Fix bug for ios compile error of unary int8
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying committed Oct 18, 2023
1 parent 3ff49cb commit 067d0be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/backend/cpu/CPUUnary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ ErrorCode CPUUnary::onExecute(const std::vector<Tensor *> &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 ) {
Expand Down

0 comments on commit 067d0be

Please sign in to comment.