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

Method insertBefore

source/python.js:12824–12830  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

12822 this._next = value;
12823 }
12824 insertBefore(n) {
12825 if (!n.inBlockList()) {
12826 throw new python.Error('Node not in block.');
12827 }
12828 this.insertAfter(n.prev);
12829 return this;
12830 }
12831 insertAfter(n) {
12832 torch._C.AT_ASSERT(!this.inBlockList() || n.inBlockList());
12833 torch._C.AT_ASSERT(n.owningBlock());

Callers 12

exportMethod · 0.45
actionMethod · 0.45
contentMethod · 0.45
renderMethod · 0.45
combineConcatsMethod · 0.45
constructorMethod · 0.45
insertNodeMethod · 0.45
appendNodeMethod · 0.45
moveBeforeMethod · 0.45
emitIfElseBlocksMethod · 0.45
addNodeInputMethod · 0.45
transformExitsMethod · 0.45

Calls 2

inBlockListMethod · 0.80
insertAfterMethod · 0.80

Tested by

no test coverage detected