| 36 | @pytest.mark.parametrize("symbolic", [False, True]) |
| 37 | def test_auto_naming(symbolic): |
| 38 | class Simple(M.Module): |
| 39 | def __init__(self, name): |
| 40 | super().__init__() |
| 41 | self.name = name |
| 42 | |
| 43 | def forward(self, x): |
| 44 | return x + x |
| 45 | |
| 46 | m = Simple("simple") |
| 47 | op = _dump_and_load(m, symbolic)[-1] |
no outgoing calls