(e)
| 12232 | return n; |
| 12233 | } |
| 12234 | createEnumValue(e) { |
| 12235 | const enum_type = e.type().expect(torch.EnumType); |
| 12236 | const n = this.create('prim::EnumValue', [e]); |
| 12237 | n.output().setType(enum_type.getValueType()); |
| 12238 | return n; |
| 12239 | } |
| 12240 | createList(contained_type, values) { |
| 12241 | const n = this.create('prim::ListConstruct', values); |
| 12242 | for (const v of values) { |