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

Method hasAttribute

source/python.js:10579–10581  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10577 return null;
10578 }
10579 hasAttribute(name) {
10580 return this._attributes.find((attr) => attr.name === name);
10581 }
10582 getAttribute(arg) {
10583 const slot = Number.isInteger(arg) ? arg : this.findAttributeSlot(arg);
10584 return this._attributes[slot].type;

Callers 6

constant_valueMethod · 0.45
printMethod · 0.45
attrMethod · 0.45
constructorMethod · 0.45
hasattrMethod · 0.45
constructorMethod · 0.45

Calls 2

findMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected