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

Method findFunction

source/python.js:13987–13996  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13985 this._cu.define(prefix, /*properties=*/[], /*propResolvers=*/[], definitions, resolvers, self);
13986 }
13987 findFunction(name) {
13988 this.parseSourceIfNeeded(name.prefix());
13989 const key = name.qualifiedName();
13990 const it = this._to_be_defined.get(key);
13991 if (it && it instanceof ast.FunctionDef) {
13992 this._to_be_defined.delete(key);
13993 this.importFunction(name.prefix(), it);
13994 }
13995 return this._cu.find_function(name);
13996 }
13997 });
13998 this.registerType('torch._C.FunctionResolver', class extends torch._C.Resolver {
13999 constructor(otherResolver, functionTable) {

Callers 1

attrMethod · 0.80

Calls 7

parseSourceIfNeededMethod · 0.80
importFunctionMethod · 0.80
find_functionMethod · 0.80
prefixMethod · 0.45
qualifiedNameMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected