()
| 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) { |
no test coverage detected