mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
Add type hint for Module (#412)
This commit is contained in:
parent
1d90a76d63
commit
e3e933c6bc
@ -54,6 +54,8 @@ class Module(dict):
|
||||
mx.eval(model.parameters())
|
||||
"""
|
||||
|
||||
__call__: Callable
|
||||
|
||||
def __init__(self):
|
||||
"""Should be called by the subclasses of ``Module``."""
|
||||
self._no_grad = set()
|
||||
|
Loading…
Reference in New Issue
Block a user