revert copy (#366)

This commit is contained in:
Awni Hannun
2024-01-04 10:43:29 -08:00
committed by GitHub
parent 16856a0160
commit cf88db44b5
3 changed files with 0 additions and 20 deletions

View File

@@ -530,9 +530,3 @@ class Module(dict):
See :func:`train`.
"""
self.train(False)
def __getstate__(self):
return self.__dict__.copy()
def __setstate__(self, state):
self.__dict__.update(state)