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

Method maybeOperator

source/python.js:12662–12673  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12660 return null;
12661 }
12662 maybeOperator() {
12663 if (!this._op) {
12664 const candidates = torch._C.getAllOperatorsFor(this.kind());
12665 for (const candidate of candidates) {
12666 if (this.matches(candidate.schema())) {
12667 this._op = candidate;
12668 break;
12669 }
12670 }
12671 }
12672 return this._op;
12673 }
12674 getOperator() {
12675 const maybe = this.maybeOperator();
12676 if (maybe) {

Callers 4

schemaMethod · 0.80
maybeSchemaMethod · 0.80
getOperatorMethod · 0.80
hasSideEffectsMethod · 0.80

Calls 3

matchesMethod · 0.80
schemaMethod · 0.80
kindMethod · 0.45

Tested by

no test coverage detected