(self, x)
| 440 | self.node_to_placeholder[x] = placeholder_node |
| 441 | |
| 442 | def remap_input(self, x): |
| 443 | assert x.graph is self.flat_graph |
| 444 | if x in self.node_map: |
| 445 | return self.node_map[x] |
| 446 | if x not in self.node_to_placeholder: |
| 447 | self.add_placeholder(x) |
| 448 | if self.parent_call_module is not None: |
| 449 | # Important to *prepend* the output to match how we are |
| 450 | # inserting placeholder nodes. |
| 451 | self.parent_call_module.insert_arg(0, self.parent.remap_input(x)) |
| 452 | return self.node_to_placeholder[x] |
| 453 | |
| 454 | def finalize_outputs(self): |
| 455 | orig_outputs = [] |
no test coverage detected