MCPcopy Create free account
hub / github.com/ml-explore/mlx / MyModule

Class MyModule

python/tests/test_nn.py:306–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 m = m.update_modules({"layers": [0, 1]})
305
306 class MyModule(nn.Module):
307 def __init__(self):
308 super().__init__()
309 self.test = mx.array(1.0)
310 self.list = [mx.array(1.0), mx.array(2.0)]
311
312 m = MyModule()
313 with self.assertRaises(ValueError):

Callers 1

test_update_modulesMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_update_modulesMethod · 0.68