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

Method insertConstant

source/python.js:12374–12376  ·  view source on GitHub ↗
(val, loc, scope)

Source from the content-addressed store, hash-verified

12372 return node.insertBefore(this._insert_before);
12373 }
12374 insertConstant(val, loc, scope) {
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)

Callers 15

removeExtraIfOutputsMethod · 0.80
optimizeBlockMethod · 0.80
createTupleSliceMethod · 0.80
insertToListMethod · 0.80
resolveValueMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
valueMethod · 0.80
attrMethod · 0.80
callMethod · 0.80
lenMethod · 0.80
emitLoopCommonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected