(exit_pair)
| 18724 | return new torch._C.ExitPair(this._true_val, exit_val_ref); |
| 18725 | } |
| 18726 | getExitStatus(exit_pair) { |
| 18727 | const exit_v = exit_pair.hasExited(); |
| 18728 | if (exit_v === this._true_val) { |
| 18729 | return 'WILL'; |
| 18730 | } else if (exit_v === this._false_val) { |
| 18731 | return 'WONT'; |
| 18732 | } else if (exit_v === this._throws_val) { |
| 18733 | return 'THROWS'; |
| 18734 | } |
| 18735 | return 'MIGHT'; |
| 18736 | } |
| 18737 | static owningNodeKind(block) { |
| 18738 | if (block.owningNode()) { |
| 18739 | return block.owningNode().kind(); |
no test coverage detected