(obj, field)
| 12327 | return n; |
| 12328 | } |
| 12329 | createGetAttr(obj, field) { |
| 12330 | const n = this.create('prim::GetAttr', [obj]); |
| 12331 | n.s_('name', field); |
| 12332 | const classType = obj.type(); |
| 12333 | const outputType = classType.getAttribute(field); |
| 12334 | n.output().setType(outputType); |
| 12335 | n.output().setDebugName(torch._C.normalizeAttrName(field)); |
| 12336 | return n; |
| 12337 | } |
| 12338 | createLoad(name, type) { |
| 12339 | const n = this.create('prim::Load', [], 1); |
| 12340 | n.s_('name', name); |
no test coverage detected