MCPcopy Create free account
hub / github.com/RenderKit/oidn / PreConcatConvCHW

Method PreConcatConvCHW

core/concat_conv.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 // -----------------------------------------------------------------------------------------------
118
119 PreConcatConvCHW::PreConcatConvCHW(Engine* engine, const ConcatConvDesc& desc)
120 : ConcatConv(desc)
121 {
122 if (src0Desc.layout == TensorLayout::hwc)
123 throw std::invalid_argument("unsupported concat+conv source layout");
124 if (fusion != Fusion::None && fusion != Fusion::PoolDst) // only post-ops supported
125 throw std::invalid_argument("unsupported concat+conv fusion");
126
127 TensorDims srcDims{src0Desc.getC() + src1Desc.getC(), src0Desc.getH(), src0Desc.getW()};
128 TensorDims srcPaddedDims{src0Desc.getPaddedC() + src1Desc.getPaddedC(), src0Desc.getH(), src0Desc.getW()};
129 srcDesc = {srcDims, srcPaddedDims, src0Desc.layout, src0Desc.dataType};
130
131 conv = engine->newConv({srcDesc, weightDesc, biasDesc, activation, fusion, fastMath});
132 }
133
134 void PreConcatConvCHW::updateSrc()
135 {

Callers

nothing calls this directly

Calls 5

getPaddedCMethod · 0.80
getCMethod · 0.45
getHMethod · 0.45
getWMethod · 0.45
newConvMethod · 0.45

Tested by

no test coverage detected