Lines Matching refs:sum
70 float sum = 0.0f; in groupedConvFloat32() local
83 sum += filterBase[filterIndex] * inputBase[inputIndex]; in groupedConvFloat32()
88 sum += biasData[g * outputGroupDepth + d]; in groupedConvFloat32()
89 sum = std::max(std::min(sum, output_activation_max), output_activation_min); in groupedConvFloat32()
90 outPtr[d] = sum; in groupedConvFloat32()
142 int32_t sum = 0.0f; in groupedConvQuant8() local
155 sum += (static_cast<int32_t>(filterBase[filterIndex]) + in groupedConvQuant8()
163 sum += biasData[g * outputGroupDepth + d]; in groupedConvQuant8()
164 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier, in groupedConvQuant8()
166 sum += outputOffset; in groupedConvQuant8()
167 sum = std::max(std::min(sum, output_activation_max), output_activation_min); in groupedConvQuant8()
168 outPtr[d] = static_cast<T>(sum); in groupedConvQuant8()
246 int32_t sum = 0.0f; in groupedConvQuant8PerChannel() local
259 sum += (static_cast<int32_t>(filterBase[filterIndex])) * in groupedConvQuant8PerChannel()
267 sum += biasData[channelIndex]; in groupedConvQuant8PerChannel()
268 sum = tflite::MultiplyByQuantizedMultiplier( in groupedConvQuant8PerChannel()
269 sum, outputMultiplier[channelIndex], -outputShift[channelIndex]); in groupedConvQuant8PerChannel()
270 sum += outputOffset; in groupedConvQuant8PerChannel()
271 sum = std::max(std::min(sum, output_activation_max), output_activation_min); in groupedConvQuant8PerChannel()
272 outPtr[d] = static_cast<T>(sum); in groupedConvQuant8PerChannel()