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

Method mapTypeToAliasTypeSet

source/python.js:7493–7501  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

7491 this._mutable_type_cache = mutable_type_cache;
7492 }
7493 mapTypeToAliasTypeSet(type) {
7494 if (this._mutable_type_cache) {
7495 const result = this.mapTypeToBorrowedAliasTypeSet(type);
7496 if (result) {
7497 return result;
7498 }
7499 }
7500 return this.mapTypeToAliasTypeSetImpl(type);
7501 }
7502 mapTypeToAliasTypeSetImpl(type) {
7503 if (type instanceof torch.ListType ||
7504 type instanceof torch.DictType ||

Callers 2

constructorMethod · 0.80

Calls 1

Tested by

no test coverage detected