(self)
| 44 | |
| 45 | class TestOptimizers(mlx_tests.MLXTestCase): |
| 46 | def test_optimizer_state(self): |
| 47 | optim = opt.SGD(0.1) |
| 48 | optim.state["hello"] = "world" |
| 49 | self.assertEqual(optim.state["hello"], "world") |
| 50 | |
| 51 | optim.state = {0: 1} |
| 52 | self.assertEqual(optim.state, {0: 1}) |
| 53 | |
| 54 | def test_optimizers(self): |
| 55 | params = { |
nothing calls this directly
no outgoing calls
no test coverage detected