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

Method createTuple

source/python.js:12259–12267  ·  view source on GitHub ↗
(values, tuple_type)

Source from the content-addressed store, hash-verified

12257 return n;
12258 }
12259 createTuple(values, tuple_type) {
12260 if (!tuple_type) {
12261 const types = values.map((v) => v.type());
12262 tuple_type = torch.TupleType.create(types);
12263 }
12264 const n = this.create('prim::TupleConstruct', values);
12265 n.output().setType(tuple_type);
12266 return n;
12267 }
12268 createTupleUnpack(v) {
12269 const tt = v.type().expect(torch.TupleType);
12270 const n = this.create('prim::TupleUnpack', [v], 0);

Callers 5

createTupleSliceMethod · 0.80
constructorMethod · 0.80
callMethod · 0.80
emitSimpleExprMethod · 0.80
emitBinaryOpMethod · 0.80

Calls 5

mapMethod · 0.80
setTypeMethod · 0.80
typeMethod · 0.45
createMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected