| 26 | |
| 27 | |
| 28 | class Simple(Module): |
| 29 | def __init__(self): |
| 30 | super().__init__() |
| 31 | self.a = Parameter(1.23, dtype=np.float32) |
| 32 | |
| 33 | def forward(self, x): |
| 34 | x = x * self.a |
| 35 | return x |
| 36 | |
| 37 | |
| 38 | def _test_optimizer(opt_str, test_case, check_class, update_lr=False): |
no outgoing calls