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

Method getAttribute

source/python.js:10582–10585  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

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;
10585 }
10586 getAttributeName(slot) {
10587 return this._attributes[slot].name;
10588 }

Callers 3

createGetAttrMethod · 0.45
convertObjectMethod · 0.45
itemsMethod · 0.45

Calls 1

findAttributeSlotMethod · 0.80

Tested by

no test coverage detected