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

Method getExitStatus

source/python.js:18726–18736  ·  view source on GitHub ↗
(exit_pair)

Source from the content-addressed store, hash-verified

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();

Callers 3

transformLoopMethod · 0.80
transformIfMethod · 0.80
transformExitsMethod · 0.80

Calls 1

hasExitedMethod · 0.80

Tested by

no test coverage detected