mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 01:50:16 +08:00
Added support for python copy (#335)
* Added support for python copy * precommit changes * removed `_compiled_call_impl` line * added tests and suggested changes * ACK changes
This commit is contained in:
@@ -530,3 +530,9 @@ class Module(dict):
|
||||
See :func:`train`.
|
||||
"""
|
||||
self.train(False)
|
||||
|
||||
def __getstate__(self):
|
||||
return self.__dict__.copy()
|
||||
|
||||
def __setstate__(self, state):
|
||||
self.__dict__.update(state)
|
||||
|
Reference in New Issue
Block a user