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

Method register_function

source/python.js:18022–18027  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

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));
18025 this._functions.set(name, fn);
18026 return fn;
18027 }
18028 define(...args) {
18029 if (Array.isArray(args[1])) {
18030 const [prefix, properties, propResolvers, definitions, defResolvers, self, shouldMangle, operator_set_version] = args;

Callers 1

record_functionMethod · 0.80

Calls 4

qualnameMethod · 0.80
qualifiedNameMethod · 0.45
hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected