Searched refs:outputShift (Results 1 – 6 of 6) sorted by relevance
/frameworks/ml/nn/common/operations/ |
D | FullyConnected.cpp | 117 int32_t outputShift = 0; in fullyConnectedQuant8() local 125 outputShift = -exponent; in fullyConnectedQuant8() 140 outputOffset, outputMultiplier, outputShift, in fullyConnectedQuant8() 155 int32_t outputShift = 0; in fullyConnectedQuant8() local 161 NN_RET_CHECK(QuantizeMultiplier(realMultiplier, &outputMultiplier, &outputShift)); in fullyConnectedQuant8() 170 params.output_shift = outputShift; in fullyConnectedQuant8()
|
D | GroupedConv2D.cpp | 119 int32_t outputShift = 0; in groupedConvQuant8() local 124 outputShift = -exponent; in groupedConvQuant8() 165 -outputShift); in groupedConvQuant8() 215 auto outputShift = std::vector<int32_t>(outputDepth, 0); in groupedConvQuant8PerChannel() local 227 outputShift[i] = -exponent; in groupedConvQuant8PerChannel() 269 sum, outputMultiplier[channelIndex], -outputShift[channelIndex]); in groupedConvQuant8PerChannel()
|
D | TransposeConv2D.cpp | 208 int32_t outputShift = 0; in transposeConvNhwc() local 213 outputShift = -exponent; in transposeConvNhwc() 266 outVal = tflite::MultiplyByQuantizedMultiplier(outVal, outputMultiplier, -outputShift); in transposeConvNhwc() 343 std::vector<int32_t> outputShift(outputDepth, 0); in transposeConvQuant8PerChannelNhwc() local 354 outputShift[i] = -exponent; in transposeConvQuant8PerChannelNhwc() 408 -outputShift[d]); in transposeConvQuant8PerChannelNhwc()
|
D | Conv2D.cpp | 377 auto outputShift = std::vector<int32_t>(outputDepth, .0f); in convQuant8PerChannelNhwc() local 388 outputShift[i] = -exponent; in convQuant8PerChannelNhwc() 429 -outputShift[d]); in convQuant8PerChannelNhwc() 470 auto outputShift = std::vector<int32_t>(outputDepth, .0f); 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 | 243 int32_t outputShift = 0; in roiAlignQuantNhwc() local 244 if (!QuantizeMultiplierSmallerThanOne(realMultiplier, &outputMultiplier, &outputShift)) { in roiAlignQuantNhwc() 303 outTemp[k], outputMultiplier, -outputShift) + in roiAlignQuantNhwc()
|
D | DepthwiseConv2D.cpp | 303 auto outputShift = std::vector<int32_t>(outputDepth, .0f); in depthwiseConvQuant8PerChannelNhwc() local 314 outputShift[i] = -exponent; in depthwiseConvQuant8PerChannelNhwc() 355 -outputShift[oc]); in depthwiseConvQuant8PerChannelNhwc()
|