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

Method setVar

source/python.js:14461–14463  ·  view source on GitHub ↗
(loc, name, value)

Source from the content-addressed store, hash-verified

14459 return this.b;
14460 }
14461 setVar(loc, name, value) {
14462 this.setSugaredVar(loc, name, new torch._C.SimpleValue(value), null);
14463 }
14464 setSugaredVar(loc, name, value, annotated_type) {
14465 let as_simple_value = torch._C.asSimple(value);
14466 if (as_simple_value && !as_simple_value.hasDebugName() && torch._C.meaningfulName(name) && as_simple_value.node().owningBlock() === this.block()) {

Callers 4

emitFormalArgumentsMethod · 0.80
insertRefinementsMethod · 0.80
eraseBlockLoadStoresMethod · 0.80

Calls 2

setSugaredVarMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected