(v, types)
| 12316 | return node; |
| 12317 | } |
| 12318 | createIsInstance(v, types) { |
| 12319 | const n = this.create('prim::isinstance', [v], 1); |
| 12320 | n.tys_('types', types); |
| 12321 | n.output().setType(torch.BoolType.get()); |
| 12322 | return n; |
| 12323 | } |
| 12324 | createSetAttr(obj, field, newValue) { |
| 12325 | const n = this.create('prim::SetAttr', [obj, newValue], 0); |
| 12326 | n.s_('name', field); |