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

Method find_method

source/python.js:16473–16480  ·  view source on GitHub ↗
(basename)

Source from the content-addressed store, hash-verified

16471 }
16472 }
16473 find_method(basename) {
16474 for (const fn of this.type().methods()) {
16475 if (fn.name() === basename) {
16476 return new torch.ScriptMethod(this /* _value() */, fn);
16477 }
16478 }
16479 return null;
16480 }
16481 _get_method(name) {
16482 const method = this.find_method(name);
16483 if (method) {

Callers 2

_get_methodMethod · 0.80
_has_methodMethod · 0.80

Calls 3

methodsMethod · 0.80
typeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected