MCPcopy Index your code
hub / github.com/lutzroeder/netron / destroyNodeAfterExit

Method destroyNodeAfterExit

source/python.js:18539–18546  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

18537 this.transformExits(this._graph.block());
18538 }
18539 destroyNodeAfterExit(n) {
18540 for (const output of n.outputs()) {
18541 if (output.uses().length > 0) {
18542 output.replaceAllUsesWith(this.getUnitValue(output.type()));
18543 }
18544 }
18545 n.destroy();
18546 }
18547 deleteAfterExitNodes(block, iter) {
18548 const nodes = block.nodes();
18549 if (iter === nodes.end()) {

Callers 1

deleteAfterExitNodesMethod · 0.80

Calls 6

usesMethod · 0.80
replaceAllUsesWithMethod · 0.80
getUnitValueMethod · 0.80
destroyMethod · 0.80
outputsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected