mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 01:17:26 +08:00
Fix style
This commit is contained in:
parent
90072445e7
commit
8ec7713893
@ -260,7 +260,7 @@ class TestBase(mlx_tests.MLXTestCase):
|
|||||||
m = m.update_modules({"list": ["hi"]})
|
m = m.update_modules({"list": ["hi"]})
|
||||||
|
|
||||||
# Allow updating a strict subset
|
# Allow updating a strict subset
|
||||||
m = nn.Sequential(nn.Linear(3, 3), nn. Linear(3, 3))
|
m = nn.Sequential(nn.Linear(3, 3), nn.Linear(3, 3))
|
||||||
m.update_modules({"layers": [{}, nn.Linear(3, 4)]})
|
m.update_modules({"layers": [{}, nn.Linear(3, 4)]})
|
||||||
self.assertEqual(m.layers[1].weight.shape, (4, 3))
|
self.assertEqual(m.layers[1].weight.shape, (4, 3))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user