minor fix in optimizer + docs (#1264)

This commit is contained in:
Awni Hannun
2024-07-12 12:18:02 -07:00
committed by GitHub
parent 218047c75a
commit 8c01a7893b
2 changed files with 36 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ class Optimizer:
@state.setter
def state(self, state: dict):
self._initialized = True
self._state = state
@property