MCPcopy Create free account
hub / github.com/alibaba/MNN / onResize

Method onResize

source/backend/cpu/compute/ConvInt8TiledExecutor.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40ErrorCode ConvInt8TiledExecutor::onResize(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs) {
41 if (nullptr != mMutableResource) {
42 mMutableResource->updateInputOutputScale(TensorUtils::getQuantInfo(inputs[0]), TensorUtils::getQuantInfo(outputs[0]));
43 }
44 CPUConvolution::onResize(inputs, outputs);
45 ConvolutionTiledExecutor::setIm2ColParameter(mIm2ColParamter, mCommon, inputs[0], outputs[0], mPadX, mPadY, static_cast<CPUBackend*>(backend())->functions(), static_cast<CPUBackend*>(backend())->int8Functions());
46 return NO_ERROR;
47}
48
49void ConvInt8TiledExecutor::initializeConvInt8QuantInfo(std::shared_ptr<CPUConvolution::ResourceInt8> &resourceInt8, const Convolution2D *conv2D, std::shared_ptr<ConvolutionCommon::Int8Common> quanCommon) {
50 // input/output scale&zeorpoint

Callers

nothing calls this directly

Calls 15

backendFunction · 0.85
_getProportionsFunction · 0.85
_updateMixedKernelFlagFunction · 0.85
_computeDivides4SmeFunction · 0.85
functionsMethod · 0.80
int8FunctionsMethod · 0.80
threadNumberMethod · 0.80
int8GemmFunctionsMethod · 0.80
onAcquireBufferMethod · 0.80
computeDivideSizesMethod · 0.80

Tested by

no test coverage detected