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

Method registerPendingOperators

source/python.js:6617–6626  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6615 this.operators = new Map();
6616 }
6617 registerPendingOperators() {
6618 for (const op of this.to_register) {
6619 const sym = op.schema().name;
6620 if (!this.operators.has(sym)) {
6621 this.operators.set(sym, []);
6622 }
6623 this.operators.get(sym).push(op);
6624 }
6625 this.to_register = [];
6626 }
6627 registerOperator(op) {
6628 this.to_register.push(op);
6629 }

Callers 1

getOperatorsMethod · 0.80

Calls 5

schemaMethod · 0.80
hasMethod · 0.45
setMethod · 0.45
pushMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected