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

Method _get_method

source/python.js:16481–16488  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

16479 return null;
16480 }
16481 _get_method(name) {
16482 const method = this.find_method(name);
16483 if (method) {
16484 return method;
16485 }
16486 torch._C.TORCH_CHECK(false, `Method '${name}' is not defined.`);
16487 return null;
16488 }
16489 _has_method(name) {
16490 return this.find_method(name) ? true : false;
16491 }

Callers

nothing calls this directly

Calls 1

find_methodMethod · 0.80

Tested by

no test coverage detected