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

Method gather_rhs

source/python.js:16875–16884  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

16873 const lhs_types = [];
16874 const rhs_types = [];
16875 const gather_rhs = (expr) => {
16876 if (expr instanceof ast.Tuple) {
16877 for (const e of expr.elts) {
16878 gather_rhs(e);
16879 }
16880 return;
16881 }
16882 const type = this._typeParser.parseTypeFromExpr(expr);
16883 rhs_types.push(type);
16884 };
16885 lhs_types.push(lhs_val.type());
16886 gather_rhs(classinfo);
16887 torch._C.standardizeVectorForUnion(lhs_types);

Callers

nothing calls this directly

Calls 2

parseTypeFromExprMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected