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

Method updateSrc

core/concat_conv.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 void PreConcatConvCHW::updateSrc()
135 {
136 if (!src0->getBuffer() || !src1->getBuffer())
137 throw std::invalid_argument("concat+conv sources must be backed by buffers");
138 if (src0->getBuffer() != src1->getBuffer() ||
139 (static_cast<char*>(src0->getPtr()) + src0->getByteSize()) != static_cast<char*>(src1->getPtr()))
140 throw std::invalid_argument("concat+conv sources are not pre-concatenated in memory");
141
142 auto src = src0->getBuffer()->newTensor(srcDesc, src0->getByteOffset());
143 conv->setSrc(src);
144 }
145
146 // -----------------------------------------------------------------------------------------------
147

Callers

nothing calls this directly

Calls 6

getBufferMethod · 0.80
getByteOffsetMethod · 0.80
getPtrMethod · 0.45
getByteSizeMethod · 0.45
newTensorMethod · 0.45
setSrcMethod · 0.45

Tested by

no test coverage detected