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

Method emitSingleIfBranch

source/python.js:17143–17151  ·  view source on GitHub ↗
(b, branch, refinements)

Source from the content-addressed store, hash-verified

17141 }
17142 }
17143 emitSingleIfBranch(b, branch, refinements) {
17144 this.pushFrame(b);
17145 const guard = new torch._C.WithInsertPoint(b);
17146 this.insertRefinements(branch, refinements);
17147 this.emitStatements(branch);
17148 const frame = this.popFrame();
17149 guard.dispose();
17150 return frame;
17151 }
17152 create(kind, loc, n_outputs) {
17153 return this.graph.create(kind, n_outputs).setSourceRange(loc);
17154 }

Callers 1

emitIfElseBlocksMethod · 0.80

Calls 5

pushFrameMethod · 0.80
insertRefinementsMethod · 0.80
emitStatementsMethod · 0.80
popFrameMethod · 0.80
disposeMethod · 0.45

Tested by

no test coverage detected