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

Method createListUnpack

source/python.js:12250–12258  ·  view source on GitHub ↗
(v, size)

Source from the content-addressed store, hash-verified

12248 return n;
12249 }
12250 createListUnpack(v, size) {
12251 const list_type = v.type().expect(torch.ListType);
12252 const elem_type = list_type.getElementType();
12253 const n = this.create('prim::ListUnpack', [v], 0);
12254 for (let i = 0; i < size; i++) {
12255 n.addOutput().setType(elem_type);
12256 }
12257 return n;
12258 }
12259 createTuple(values, tuple_type) {
12260 if (!tuple_type) {
12261 const types = values.map((v) => v.type());

Callers 1

asTupleMethod · 0.80

Calls 6

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

Tested by

no test coverage detected