mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 18:28:12 +08:00
Add type hint for Module (#412)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user