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

Method register_type

source/python.js:18019–18021  ·  view source on GitHub ↗
(namedType)

Source from the content-addressed store, hash-verified

18017 this._classes = new Map();
18018 }
18019 register_type(namedType) {
18020 this._classes.set(namedType.annotation_str, namedType);
18021 }
18022 register_function(fn) {
18023 const name = fn.qualname().qualifiedName();
18024 torch._C.TORCH_CHECK(!this._functions.has(name));

Callers 5

importClassMethod · 0.80
importEnumMethod · 0.80
importNamedTupleMethod · 0.80
create_module_objectMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected