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

Method addNodeOutput

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

Source from the content-addressed store, hash-verified

18213 insert.dispose();
18214 }
18215 addNodeOutput(n, type, name) {
18216 const out = n.addOutput().setType(type);
18217 if (torch._C.meaningfulName(name)) {
18218 out.setDebugName(name);
18219 }
18220 const g = n.owningGraph();
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();

Callers 2

addIfLoadStoresMethod · 0.80
addLoopLoadStoresMethod · 0.80

Calls 6

setTypeMethod · 0.80
addOutputMethod · 0.80
setDebugNameMethod · 0.80
owningGraphMethod · 0.80
insertAfterMethod · 0.80
createStoreMethod · 0.80

Tested by

no test coverage detected