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

Method replaceAllUsesWith

source/python.js:12938–12944  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

12936 this._graph.freeNode(this);
12937 }
12938 replaceAllUsesWith(n) {
12939 torch._C.AT_ASSERT(this.outputs().length === n.outputs().length);
12940 const nOutputs = this.outputs().length;
12941 for (let i = 0; i < nOutputs; i++) {
12942 this.outputs()[i].replaceAllUsesWith(n.outputs()[i]);
12943 }
12944 }
12945 s_(name, value) {
12946 this._values.set(name, [value, 's']);
12947 return this;

Callers 10

propagateNodeMethod · 0.80
removeLoopNodeMethod · 0.80
inlineIfBodyMethod · 0.80
combineConcatsMethod · 0.80
optimizeBlockMethod · 0.80
constructorMethod · 0.80
eraseBlockLoadStoresMethod · 0.80
destroyNodeAfterExitMethod · 0.80

Calls 3

usesMethod · 0.80
replaceFirstUseWithMethod · 0.80
outputsMethod · 0.45

Tested by

no test coverage detected