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

Method addBlockOutput

source/python.js:18208–18214  ·  view source on GitHub ↗
(exit_block, type, name)

Source from the content-addressed store, hash-verified

18206 g.createStore(name, b.addInput(name).setType(type)).insertAfter(b.param_node());
18207 }
18208 addBlockOutput(exit_block, type, name) {
18209 const insert = new torch._C.WithInsertPoint(exit_block);
18210 const g = exit_block.owningGraph();
18211 const block_exit = g.insertNode(g.createLoad(name, type)).output();
18212 exit_block.registerOutput(block_exit);
18213 insert.dispose();
18214 }
18215 addNodeOutput(n, type, name) {
18216 const out = n.addOutput().setType(type);
18217 if (torch._C.meaningfulName(name)) {

Callers 2

addIfLoadStoresMethod · 0.80
addLoopLoadStoresMethod · 0.80

Calls 6

owningGraphMethod · 0.80
insertNodeMethod · 0.80
createLoadMethod · 0.80
registerOutputMethod · 0.80
outputMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected