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

Method insert

source/python.js:7123–7130  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

7121 this._nodes = new Map();
7122 }
7123 insert(n) {
7124 const key = torch._C.HashNode(n);
7125 if (this._nodes.has(key)) {
7126 this._nodes.get(key).push(n);
7127 } else {
7128 this._nodes.set(key, [n]);
7129 }
7130 }
7131 get(n) {
7132 const key = torch._C.HashNode(n);
7133 if (this._nodes.has(key)) {

Callers 5

_startFunction · 0.80
constructorMethod · 0.80
getitemMethod · 0.80
lenMethod · 0.80
emitBinaryOpMethod · 0.80

Calls 4

hasMethod · 0.45
pushMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected