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

Method getNamedValues

source/python.js:17384–17394  ·  view source on GitHub ↗
(trees, maybe_unpack)

Source from the content-addressed store, hash-verified

17382 this.exit_blocks.add(this.environment_stack.block());
17383 }
17384 getNamedValues(trees, maybe_unpack) {
17385 const values = [];
17386 for (const tree of trees) {
17387 if (maybe_unpack && tree instanceof ast.Starred) {
17388 throw new python.Error('Starred argument not supported.');
17389 } else {
17390 values.push(new torch._C.NamedValue(this.emitExpr(tree)));
17391 }
17392 }
17393 return values;
17394 }
17395 getValues(trees, maybe_unpack) {
17396 return this.getNamedValues(trees, maybe_unpack).map((value) => value.value(this.graph));
17397 }

Callers 4

emitUnaryOpMethod · 0.80
getValuesMethod · 0.80
emitApplyExprMethod · 0.80
emitBinaryOpMethod · 0.80

Calls 2

emitExprMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected