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

Method insertMethodCall

source/python.js:12377–12382  ·  view source on GitHub ↗
(method_name, matched)

Source from the content-addressed store, hash-verified

12375 return torch._C.insertConstant(this, val, loc, scope);
12376 }
12377 insertMethodCall(method_name, matched) {
12378 const result = this.insertNode(this.create('prim::CallMethod', matched.inputs))
12379 .s_('name', method_name)
12380 .output().setType(matched.return_types[0]);
12381 return result;
12382 }
12383 insertUncheckedCast(v, type) {
12384 const n = this.create('prim::unchecked_cast', [v]);
12385 this.insertNode(n);

Callers 1

callMethod · 0.80

Calls 5

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

Tested by

no test coverage detected