|
|
@ -125,7 +125,7 @@ int ReduceCPUKernel::Run() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
src_data_ = dst_data_;
|
|
|
|
src_data_ = dst_data_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (reduce_param_->reduce_to_end_ && abs(reduce_param_->coeff - 1.0f) > 1e-5) {
|
|
|
|
if (reduce_param_->reduce_to_end_ && abs(reduce_param_->coeff) > 1e-5) {
|
|
|
|
ret = CalculateCoeffOutput();
|
|
|
|
ret = CalculateCoeffOutput();
|
|
|
|
if (ret != RET_OK) {
|
|
|
|
if (ret != RET_OK) {
|
|
|
|
FreeTmpBuffer();
|
|
|
|
FreeTmpBuffer();
|
|
|
|