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

Method findAttribute

source/python.js:10572–10578  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10570 return null;
10571 }
10572 findAttribute(name) {
10573 const slot = this.findAttributeSlot(name);
10574 if (slot !== null) {
10575 return this._attributes[slot].type;
10576 }
10577 return null;
10578 }
10579 hasAttribute(name) {
10580 return this._attributes.find((attr) => attr.name === name);
10581 }

Callers 1

setAttrMethod · 0.80

Calls 1

findAttributeSlotMethod · 0.80

Tested by

no test coverage detected