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

Method addPool

core/graph.cpp:320–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 Ref<Op> Graph::addPool(const std::string& name,
321 const Ref<Op>& srcOp)
322 {
323 auto srcAlloc = tensorAllocs[srcOp.get()];
324 auto op = engine->newPool({srcAlloc->desc});
325 op->setName(name);
326 auto dstAlloc = addOp(op, {srcOp}, op->getDstDesc());
327
328 lazyInits.push_back([=]()
329 {
330 op->setSrc(srcAlloc->tensor);
331 op->setDst(dstAlloc->tensor);
332 });
333
334 return op;
335 }
336
337 Ref<Op> Graph::addUpsample(const std::string& name,
338 const Ref<Op>& srcOp)

Callers

nothing calls this directly

Calls 5

getMethod · 0.45
newPoolMethod · 0.45
getDstDescMethod · 0.45
setSrcMethod · 0.45
setDstMethod · 0.45

Tested by

no test coverage detected