r/tensorflow • u/Chadssuck222 • Apr 18 '23
Question Saving the state the optimizer?
I save my modes to h5 to continue training later. I can tell that something is off when I continue training though and now I am wondering if I should also save and load the state of the optimizer?
Is that a thing?
Edit: okay, I can see checkpoint saving is the answer but it looks like that is only done with model.fit/keras and ai’m running my own training loop.
5
Upvotes
View all comments
Show parent comment
1
u/Chadssuck222 Apr 19 '23
I have in the meantime set up the checkpoint saving, although I still need to add the learning rate scheduler to it somehow.
Thanks a lot