Add type hint for Module (#412)

This commit is contained in:
Chunyang Wen 2024-01-11 03:23:42 +08:00 committed by GitHub
parent 1d90a76d63
commit e3e933c6bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()