(self, expr: str)
| 902 | counter.visit(ast.parse(e)) |
| 903 | |
| 904 | def replace(self, expr: str) -> Tuple[List[str], str]: |
| 905 | replacer = self.Replacer(self._config, self._new_var) |
| 906 | new_node = replacer.visit(ast.parse(expr)) |
| 907 | return replacer.preface, _ast_unparse(new_node) |
| 908 | |
| 909 | |
| 910 | def must_add_nn_module_guards(guard): |