Searched refs:outputMultiplier (Results 1 – 6 of 6) sorted by relevance
/frameworks/ml/nn/common/operations/ |
D | FullyConnected.cpp | 116 int32_t outputMultiplier = 0; in fullyConnectedQuant8() local 124 NN_RET_CHECK(QuantizeMultiplier(realMultiplier, &outputMultiplier, &exponent)); in fullyConnectedQuant8() 140 outputOffset, outputMultiplier, outputShift, in fullyConnectedQuant8() 154 int32_t outputMultiplier = 0; in fullyConnectedQuant8() local 161 NN_RET_CHECK(QuantizeMultiplier(realMultiplier, &outputMultiplier, &outputShift)); in fullyConnectedQuant8() 169 params.output_multiplier = outputMultiplier; in fullyConnectedQuant8()
|
D | GroupedConv2D.cpp | 118 int32_t outputMultiplier = 0; in groupedConvQuant8() local 123 NN_RET_CHECK(QuantizeMultiplier(realMultiplier, &outputMultiplier, &exponent)); in groupedConvQuant8() 164 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier, in groupedConvQuant8() 214 auto outputMultiplier = std::vector<int32_t>(outputDepth, 0); in groupedConvQuant8PerChannel() local 226 NN_RET_CHECK(QuantizeMultiplier(realMultiplier[i], &outputMultiplier[i], &exponent)); in groupedConvQuant8PerChannel() 269 sum, outputMultiplier[channelIndex], -outputShift[channelIndex]); in groupedConvQuant8PerChannel()
|
D | TransposeConv2D.cpp | 207 int32_t outputMultiplier = 0; in transposeConvNhwc() local 212 NN_RET_CHECK(QuantizeMultiplier(realMultiplier, &outputMultiplier, &exponent)); in transposeConvNhwc() 266 outVal = tflite::MultiplyByQuantizedMultiplier(outVal, outputMultiplier, -outputShift); in transposeConvNhwc() 342 std::vector<int32_t> outputMultiplier(outputDepth, 0); in transposeConvQuant8PerChannelNhwc() local 353 NN_RET_CHECK(QuantizeMultiplier(realMultiplier[i], &outputMultiplier[i], &exponent)); in transposeConvQuant8PerChannelNhwc() 407 outVal = tflite::MultiplyByQuantizedMultiplier(outVal, outputMultiplier[d], in transposeConvQuant8PerChannelNhwc()
|
D | Conv2D.cpp | 376 auto outputMultiplier = std::vector<int32_t>(outputDepth, 0); in convQuant8PerChannelNhwc() local 387 NN_RET_CHECK(QuantizeMultiplier(realMultiplier[i], &outputMultiplier[i], &exponent)); in convQuant8PerChannelNhwc() 428 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier[d], in convQuant8PerChannelNhwc() 469 auto outputMultiplier = std::vector<int32_t>(outputDepth, 0); in convQuant8PerChannelNhwc() local 479 NN_RET_CHECK(QuantizeMultiplier(realMultiplier[i], &outputMultiplier[i], &outputShift[i])); in convQuant8PerChannelNhwc() 500 convParams, outputMultiplier.data(), outputShift.data(), in convQuant8PerChannelNhwc()
|
D | RoiAlign.cpp | 242 int32_t outputMultiplier = 0; in roiAlignQuantNhwc() local 244 if (!QuantizeMultiplierSmallerThanOne(realMultiplier, &outputMultiplier, &outputShift)) { in roiAlignQuantNhwc() 303 outTemp[k], outputMultiplier, -outputShift) + in roiAlignQuantNhwc()
|
D | DepthwiseConv2D.cpp | 302 auto outputMultiplier = std::vector<int32_t>(outputDepth, 0); in depthwiseConvQuant8PerChannelNhwc() local 313 NN_RET_CHECK(QuantizeMultiplier(realMultiplier[i], &outputMultiplier[i], &exponent)); in depthwiseConvQuant8PerChannelNhwc() 354 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier[oc], in depthwiseConvQuant8PerChannelNhwc()
|