MCPcopy
hub / github.com/lutzroeder/netron / addMethod

Method addMethod

source/python.js:10490–10493  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

10488 return this._attributes[slot].is_buffer === true;
10489 }
10490 addMethod(method) {
10491 torch._C.TORCH_CHECK(this.findMethod(method.name()) === null);
10492 this._methods.push(method);
10493 }
10494 findMethod(name) {
10495 for (const method of this._methods) {
10496 if (name === method.name()) {

Callers 4

createWithContainedMethod · 0.80
defineMethod · 0.80
parseModuleMethod · 0.80
constructorMethod · 0.80

Calls 3

findMethodMethod · 0.80
nameMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected