(...args)
| 7572 | this._writeIndex = new Map(); |
| 7573 | } |
| 7574 | static isMutableType(...args) { |
| 7575 | if (args[0] instanceof torch.Type) { |
| 7576 | const [type] = args; |
| 7577 | return torch._C.isMutableTypeImpl(type, null); |
| 7578 | } |
| 7579 | if (args[0] instanceof torch.Value) { |
| 7580 | const [value] = args; |
| 7581 | return torch._C.AliasDb.isMutableType(value.type()); |
| 7582 | } |
| 7583 | throw new python.Error('Not implemented.'); |
| 7584 | } |
| 7585 | writesToAlias(/* n, vs */) { |
| 7586 | /* |
| 7587 | const writtenTo = this.getWrites(n); |