MCPcopy
hub / github.com/lutzroeder/netron / addNodeInput

Method addNodeInput

source/python.js:18223–18227  ·  view source on GitHub ↗
(n, type, name)

Source from the content-addressed store, hash-verified

18221 g.createStore(name, out).insertAfter(n);
18222 }
18223 addNodeInput(n, type, name) {
18224 const g = n.owningGraph();
18225 const inp = g.createLoad(name, type).insertBefore(n).output();
18226 n.addInput(inp);
18227 }
18228 addIfLoadStores(n) {
18229 const [true_block, false_block] = n.blocks();
18230 const true_vars = this.addControlFlowLoadStores(true_block);

Callers 1

addLoopLoadStoresMethod · 0.80

Calls 5

owningGraphMethod · 0.80
createLoadMethod · 0.80
addInputMethod · 0.80
outputMethod · 0.45
insertBeforeMethod · 0.45

Tested by

no test coverage detected