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

Method insertFunctionCall

source/python.js:12414–12420  ·  view source on GitHub ↗
(callee, matched)

Source from the content-addressed store, hash-verified

12412 return n.output();
12413 }
12414 insertFunctionCall(callee, matched) {
12415 const func_name = callee.name();
12416 const fn_constant = this.insertNode(this.create('prim::Constant')).s_('name', func_name).output().setType(torch._C.FunctionType.create(callee));
12417 const inputs = [fn_constant, ...matched.inputs];
12418 const result = this.insertNode(this.create('prim::CallFunction', inputs)).output().setType(matched.return_types[0]);
12419 return result;
12420 }
12421 insertPoint() {
12422 return this._insert_before;
12423 }

Callers 1

callMethod · 0.80

Calls 6

setTypeMethod · 0.80
s_Method · 0.80
insertNodeMethod · 0.80
nameMethod · 0.45
outputMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected