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

Method emitOutput

source/python.js:16715–16720  ·  view source on GitHub ↗
(range, schema, block)

Source from the content-addressed store, hash-verified

16713 return args;
16714 }
16715 emitOutput(range, schema, block) {
16716 const ret_type = this._def_stack[this._def_stack.length - 1]._merged_return_type;
16717 const placeholder_return = this.graph.insertNode(this.graph.createUninitialized(ret_type)).output();
16718 block.registerOutput(placeholder_return);
16719 return new torch.Argument('', this._def_stack[this._def_stack.length - 1]._merged_return_type);
16720 }
16721 emitStatements(stmts) {
16722 for (let i = 0; i < stmts.length; i++) {
16723 const stmt = stmts[i];

Callers 1

emitDefMethod · 0.80

Calls 4

insertNodeMethod · 0.80
createUninitializedMethod · 0.80
registerOutputMethod · 0.80
outputMethod · 0.45

Tested by

no test coverage detected