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

Method createTupleUnpack

source/python.js:12268–12275  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

12266 return n;
12267 }
12268 createTupleUnpack(v) {
12269 const tt = v.type().expect(torch.TupleType);
12270 const n = this.create('prim::TupleUnpack', [v], 0);
12271 for (const element of tt.elements()) {
12272 n.addOutput().setType(element);
12273 }
12274 return n;
12275 }
12276 createTupleIndex(tup, idx, output_type) {
12277 const n = this.create('prim::TupleIndex', [tup, idx]);
12278 n.output().setType(output_type);

Callers 3

constructorMethod · 0.80
asTupleMethod · 0.80
emitBinaryOpMethod · 0.80

Calls 6

elementsMethod · 0.80
setTypeMethod · 0.80
addOutputMethod · 0.80
expectMethod · 0.45
typeMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected