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

Method createEnumValue

source/python.js:12234–12239  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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) {

Callers 1

attrMethod · 0.80

Calls 6

setTypeMethod · 0.80
getValueTypeMethod · 0.80
expectMethod · 0.45
typeMethod · 0.45
createMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected