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

Method isMutableType

source/python.js:7574–7584  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

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);

Callers 1

noMutableValuesMethod · 0.80

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected