(method_name, matched)
| 12375 | return torch._C.insertConstant(this, val, loc, scope); |
| 12376 | } |
| 12377 | insertMethodCall(method_name, matched) { |
| 12378 | const result = this.insertNode(this.create('prim::CallMethod', matched.inputs)) |
| 12379 | .s_('name', method_name) |
| 12380 | .output().setType(matched.return_types[0]); |
| 12381 | return result; |
| 12382 | } |
| 12383 | insertUncheckedCast(v, type) { |
| 12384 | const n = this.create('prim::unchecked_cast', [v]); |
| 12385 | this.insertNode(n); |