MCPcopy Index your code
hub / github.com/lutzroeder/netron / writesToWildcard

Method writesToWildcard

source/python.js:7604–7616  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

7602 return false;
7603 }
7604 writesToWildcard(n) {
7605 if (!this._writeIndex.has(n)) {
7606 return false;
7607 }
7608 const writes = this._writeIndex.get(n);
7609 for (const pr of this._wildcardIndex) {
7610 const [, wildcardElement] = pr;
7611 if (writes.test(wildcardElement.index)) {
7612 return true;
7613 }
7614 }
7615 return false;
7616 }
7617 safeToChangeAliasingRelationship(a, b) {
7618 if (torch._C.hasWriters(a) || torch._C.hasWriters(b)) {
7619 return false;

Callers 1

hasUntrackedMutationMethod · 0.80

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected