(n)
| 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; |
no test coverage detected