Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ __init__
Method
__init__
python/tests/test_nn.py:307–310 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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
nothing calls this directly
Calls
2
array
Method · 0.60
__init__
Method · 0.45
Tested by
no test coverage detected