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

Method getUnitValue

source/python.js:18522–18530  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

18520 guard.dispose();
18521 }
18522 getUnitValue(type) {
18523 const maybe_val = this._unit_values.get(type);
18524 if (maybe_val) {
18525 return maybe_val;
18526 }
18527 const unit = this._graph.createUninitialized(type).insertAfter(this._graph.param_node()).output();
18528 this._unit_values.set(type, unit);
18529 return unit;
18530 }
18531 transformReturnStmts() {
18532 this._current_exit_kind = 'prim::ReturnStmt';
18533 this.transformExits(this._graph.block());

Callers 3

constructorMethod · 0.80
destroyNodeAfterExitMethod · 0.80
transformLoopMethod · 0.80

Calls 6

insertAfterMethod · 0.80
createUninitializedMethod · 0.80
param_nodeMethod · 0.80
getMethod · 0.45
outputMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected